ecore_getopt: correct fix for CID 98382 and 98383

This commit is contained in:
Daniel Kolesa 2014-08-27 11:57:19 +01:00
parent 27f738115e
commit 9a3cf2ff49
1 changed files with 3 additions and 0 deletions

View File

@ -1292,6 +1292,9 @@ _ecore_getopt_parse_choice(const Ecore_Getopt *parser EINA_UNUSED,
{
const char *const *pchoice;
if (!arg_val)
return EINA_FALSE;
if (!val->strp)
{
_ecore_getopt_desc_print_error(desc, _("value has no pointer set.\n"));