summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_getopt.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2014-08-27 11:57:19 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2014-08-27 11:57:19 +0100
commit9a3cf2ff49177ee2bfab1aaf959db22c41609c7d (patch)
tree2fbc4f2deea89a546d76e355801596a8f2f81086 /src/lib/ecore/ecore_getopt.c
parent27f738115eb269340d56167ae93f66a6eeb2d514 (diff)
ecore_getopt: correct fix for CID 98382 and 98383
Diffstat (limited to 'src/lib/ecore/ecore_getopt.c')
-rw-r--r--src/lib/ecore/ecore_getopt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index ea4e69b5b8..50f3c7c814 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -1292,6 +1292,9 @@ _ecore_getopt_parse_choice(const Ecore_Getopt *parser EINA_UNUSED,
1292{ 1292{
1293 const char *const *pchoice; 1293 const char *const *pchoice;
1294 1294
1295 if (!arg_val)
1296 return EINA_FALSE;
1297
1295 if (!val->strp) 1298 if (!val->strp)
1296 { 1299 {
1297 _ecore_getopt_desc_print_error(desc, _("value has no pointer set.\n")); 1300 _ecore_getopt_desc_print_error(desc, _("value has no pointer set.\n"));