summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_getopt.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-22 15:13:44 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-22 15:13:44 +0100
commit8c8a2b1098932ebd6f40ef064dfa652bbdf7edc0 (patch)
treebc4b5b38519232b7b029755720121a9b6da67e50 /src/lib/ecore/ecore_getopt.c
parent50632600e612380bcdc6ab56a48f878536d4c58f (diff)
ecore_getopt: correct fix for CID 98382 and 98383
Diffstat (limited to 'src/lib/ecore/ecore_getopt.c')
-rw-r--r--src/lib/ecore/ecore_getopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index 79e09cce75..ea4e69b5b8 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -1049,6 +1049,9 @@ static Eina_Bool
1049_ecore_getopt_parse_bool(const char *str, 1049_ecore_getopt_parse_bool(const char *str,
1050 Eina_Bool *v) 1050 Eina_Bool *v)
1051{ 1051{
1052 if (!str)
1053 return EINA_FALSE;
1054
1052 if ((strcmp(str, "0") == 0) || 1055 if ((strcmp(str, "0") == 0) ||
1053 (strcasecmp(str, "f") == 0) || 1056 (strcasecmp(str, "f") == 0) ||
1054 (strcasecmp(str, "false") == 0) || 1057 (strcasecmp(str, "false") == 0) ||