summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_getopt.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 17:53:42 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-27 17:53:42 +0900
commitd8130825d5a0c2bb45c7212a4885afbc07f2392e (patch)
tree5598032ecf0dddd26d40aee38ae19268be48b4e2 /src/lib/ecore/ecore_getopt.c
parent7e3367d82c4300fe2573f1bc5fb36840a923502b (diff)
ecore_getopt - fix possible null arg
fixes 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 ea4e69b5b8..d242400db4 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -1789,7 +1789,9 @@ _ecore_getopt_parse_arg_short(const Ecore_Getopt *parser,
1789 1789
1790 desc_idx = desc - parser->descs; 1790 desc_idx = desc - parser->descs;
1791 value = values + desc_idx; 1791 value = values + desc_idx;
1792 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val); 1792 if (arg_val)
1793 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val);
1794 else ret = EINA_FALSE;
1793 if ((!ret) && parser->strict) 1795 if ((!ret) && parser->strict)
1794 return EINA_FALSE; 1796 return EINA_FALSE;
1795 } 1797 }