summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_getopt.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 18:34:07 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 20:14:58 +0900
commitab539003643540aafe6e6ce09edb2d42d2c67f41 (patch)
tree3af63ba60010edd681d7399aa2e8120491dec90d /src/lib/ecore/ecore_getopt.c
parent1bb6a8a4e4055c6fce2391012aae3c6984aa2302 (diff)
ecore_getopt - fix arg_val being null
fix 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 e1c3022d63..e36445501c 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -1705,7 +1705,9 @@ _ecore_getopt_parse_arg_long(const Ecore_Getopt *parser,
1705 1705
1706 desc_idx = desc - parser->descs; 1706 desc_idx = desc - parser->descs;
1707 value = values + desc_idx; 1707 value = values + desc_idx;
1708 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val); 1708 if (arg_val)
1709 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val);
1710 else ret = EINA_FALSE;
1709 if ((!ret) && parser->strict) 1711 if ((!ret) && parser->strict)
1710 return EINA_FALSE; 1712 return EINA_FALSE;
1711 1713