q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=50632600e612380bcdc6ab56a48f878536d4c58f

commit 50632600e612380bcdc6ab56a48f878536d4c58f
Author: Daniel Kolesa <[email protected]>
Date:   Fri Aug 22 15:07:21 2014 +0100

    Revert "ecore_getopt - fix arg_val being null"
    
    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 | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index b6d5149..79e09cc 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -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;
 

-- 


Reply via email to