Revert "ecore_getopt - handle if arg_val is null"
authorTom Hacohen <tom@stosb.com>
Fri, 22 Aug 2014 13:51:35 +0000 (14:51 +0100)
committerTom Hacohen <tom@stosb.com>
Fri, 22 Aug 2014 13:51:35 +0000 (14:51 +0100)
This completely breaks getopt. Try running terminology --help.

This reverts commit 1bb6a8a4e4055c6fce2391012aae3c6984aa2302.

src/lib/ecore/ecore_getopt.c

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