summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_getopt.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 18:32:36 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-22 20:14:58 +0900
commit1bb6a8a4e4055c6fce2391012aae3c6984aa2302 (patch)
treef7ae699e6425d6b9aa7a5e6b7fea29d99052e5c2 /src/lib/ecore/ecore_getopt.c
parent9415a1d3107c396e8e26aef7e3769dc502880d90 (diff)
ecore_getopt - handle if arg_val is null
fix CID 98383
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 79e09cce75..e1c3022d63 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -1786,7 +1786,9 @@ _ecore_getopt_parse_arg_short(const Ecore_Getopt *parser,
1786 1786
1787 desc_idx = desc - parser->descs; 1787 desc_idx = desc - parser->descs;
1788 value = values + desc_idx; 1788 value = values + desc_idx;
1789 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val); 1789 if (arg_val)
1790 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val);
1791 else ret = EINA_FALSE;
1790 if ((!ret) && parser->strict) 1792 if ((!ret) && parser->strict)
1791 return EINA_FALSE; 1793 return EINA_FALSE;
1792 } 1794 }