ecore_getopt - fix possible null arg

fixes CID 98383
This commit is contained in:
Carsten Haitzler 2014-08-27 17:53:42 +09:00
parent 7e3367d82c
commit d8130825d5
1 changed files with 3 additions and 1 deletions

View File

@ -1789,7 +1789,9 @@ _ecore_getopt_parse_arg_short(const Ecore_Getopt *parser,
desc_idx = desc - parser->descs;
value = values + desc_idx;
ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val);
if (arg_val)
ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val);
else ret = EINA_FALSE;
if ((!ret) && parser->strict)
return EINA_FALSE;
}