summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_getopt.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 17:55:06 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 17:55:06 +0900
commite876ec527fd2cd89b01e61e34a9227f38357c25a (patch)
treebe9d97901b4dd312c4e8aec35062dde3a78b91c1 /src/lib/ecore/ecore_getopt.c
parentd8130825d5a0c2bb45c7212a4885afbc07f2392e (diff)
ecore_getopt - fix possible null arg
fixes CID 98382
Diffstat (limited to 'src/lib/ecore/ecore_getopt.c')
-rw-r--r--src/lib/ecore/ecore_getopt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index d242400db4..d086a67573 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -1708,7 +1708,9 @@ _ecore_getopt_parse_arg_long(const Ecore_Getopt *parser,
1708 1708
1709 desc_idx = desc - parser->descs; 1709 desc_idx = desc - parser->descs;
1710 value = values + desc_idx; 1710 value = values + desc_idx;
1711 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val); 1711 if (arg_val)
1712 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val);
1713 else ret = EINA_FALSE;
1712 if ((!ret) && parser->strict) 1714 if ((!ret) && parser->strict)
1713 return EINA_FALSE; 1715 return EINA_FALSE;
1714 1716