ecore_getopt: correct fix for CID 98382 and 98383
authorDaniel Kolesa <d.kolesa@samsung.com>
Fri, 22 Aug 2014 14:13:44 +0000 (15:13 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Fri, 22 Aug 2014 14:13:44 +0000 (15:13 +0100)
src/lib/ecore/ecore_getopt.c

index 79e09cc..ea4e69b 100644 (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) ||