summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_getopt.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-08-22 14:51:35 +0100
committerTom Hacohen <tom@stosb.com>2014-08-22 14:51:35 +0100
commit41ec0da2aa3be54b117601d9ab3863eff8efe0f1 (patch)
treef4121cba04800992a240e61b6675e7f89358ff6e /src/lib/ecore/ecore_getopt.c
parentf35b5e35df68acd1acb771b57dd3524f1cf49095 (diff)
Revert "ecore_getopt - handle if arg_val is null"
This completely breaks getopt. Try running terminology --help. This reverts commit 1bb6a8a4e4055c6fce2391012aae3c6984aa2302.
Diffstat (limited to 'src/lib/ecore/ecore_getopt.c')
-rw-r--r--src/lib/ecore/ecore_getopt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index e36445501c..b6d5149bd2 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -1788,9 +1788,7 @@ _ecore_getopt_parse_arg_short(const Ecore_Getopt *parser,
1788 1788
1789 desc_idx = desc - parser->descs; 1789 desc_idx = desc - parser->descs;
1790 value = values + desc_idx; 1790 value = values + desc_idx;
1791 if (arg_val) 1791 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val);
1792 ret = _ecore_getopt_desc_handle(parser, desc, value, arg_val);
1793 else ret = EINA_FALSE;
1794 if ((!ret) && parser->strict) 1792 if ((!ret) && parser->strict)
1795 return EINA_FALSE; 1793 return EINA_FALSE;
1796 } 1794 }