q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9a3cf2ff49177ee2bfab1aaf959db22c41609c7d

commit 9a3cf2ff49177ee2bfab1aaf959db22c41609c7d
Author: Daniel Kolesa <d.kol...@samsung.com>
Date:   Wed Aug 27 11:57:19 2014 +0100

    ecore_getopt: correct fix for CID 98382 and 98383
---
 src/lib/ecore/ecore_getopt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index ea4e69b..50f3c7c 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,
 {
    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"));

-- 


Reply via email to