ecore_getopt: correct fix for CID 98382 and 98383

This commit is contained in:
Daniel Kolesa 2014-08-22 15:13:44 +01:00
parent 50632600e6
commit 8c8a2b1098
1 changed files with 3 additions and 0 deletions

View File

@ -1049,6 +1049,9 @@ static Eina_Bool
_ecore_getopt_parse_bool(const char *str,
Eina_Bool *v)
{
if (!str)
return EINA_FALSE;
if ((strcmp(str, "0") == 0) ||
(strcasecmp(str, "f") == 0) ||
(strcasecmp(str, "false") == 0) ||