forked from enlightenment/efl
ecore_getopt: correct fix for CID 98382 and 98383
This commit is contained in:
parent
50632600e6
commit
8c8a2b1098
|
@ -1049,6 +1049,9 @@ static Eina_Bool
|
||||||
_ecore_getopt_parse_bool(const char *str,
|
_ecore_getopt_parse_bool(const char *str,
|
||||||
Eina_Bool *v)
|
Eina_Bool *v)
|
||||||
{
|
{
|
||||||
|
if (!str)
|
||||||
|
return EINA_FALSE;
|
||||||
|
|
||||||
if ((strcmp(str, "0") == 0) ||
|
if ((strcmp(str, "0") == 0) ||
|
||||||
(strcasecmp(str, "f") == 0) ||
|
(strcasecmp(str, "f") == 0) ||
|
||||||
(strcasecmp(str, "false") == 0) ||
|
(strcasecmp(str, "false") == 0) ||
|
||||||
|
|
Loading…
Reference in New Issue