Fix problem reported by clang.

By: Luis Felipe Strano Moraes



SVN revision: 39256
This commit is contained in:
Gustavo Sverzut Barbieri 2009-02-26 22:02:00 +00:00
parent 452695bd6c
commit 4a5c489216
1 changed files with 5 additions and 6 deletions

View File

@ -1103,12 +1103,11 @@ _ecore_getopt_parse_append(const Ecore_Getopt *parser __UNUSED__, const Ecore_Ge
*(double *)data = d;
}
break;
}
if (!data)
{
_ecore_getopt_desc_print_error(desc, "could not parse value.\n");
return 0;
default:
{
_ecore_getopt_desc_print_error(desc, "could not parse value.\n");
return 0;
}
}
*val->listp = eina_list_append(*val->listp, data);