Revert "ecore_getopt - fix arg_val being null"
authorDaniel Kolesa <d.kolesa@samsung.com>
Fri, 22 Aug 2014 14:07:21 +0000 (15:07 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Fri, 22 Aug 2014 14:07:21 +0000 (15:07 +0100)
It's as wrong as the other commit which TAsn already reverted.
This needs a fix elsewhere, particularly in the functions that
use arg_val.

This reverts commit ab539003643540aafe6e6ce09edb2d42d2c67f41.

src/lib/ecore/ecore_getopt.c

index b6d5149bd26b2ff5c58768b7bd15fef9c2934f5a..79e09cce7586d1dbb665e292a905ed1ff90069b5 100644 (file)
@@ -1705,9 +1705,7 @@ _ecore_getopt_parse_arg_long(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;