From 6976655d6cf243a878702aa05c9843a73bad8984 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 27 Aug 2013 22:50:59 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/argparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/argparser.c b/src/argparser.c index 7c80759..f274fd3 100644 --- a/src/argparser.c +++ b/src/argparser.c @@ -1420,7 +1420,7 @@ long args_parse(int argc, char** argv) else if (((*arg == '-') || (*arg == '+')) && (*(arg + 1) != 0)) if (args_alternative || (*arg == *(arg + 1))) { - long eq = 0, type = -1; + long eq = 0, type = 100; if (dontget <= 0) { if (args_optmap_contains(arg)) @@ -1551,7 +1551,7 @@ long args_parse(int argc, char** argv) char* opt = args_optmap_get_standard(*(optqueue + i)); char* arg = argptr > i ? *(argqueue + i) : null; if (argptr <= i) - args_optmap_triggerv(opt, null); + args_optmap_triggerv(*(optqueue + i), null); i++; if ((args_optmap_contains(opt) == false) || (args_opts_contains(opt) == false)) args_opts_new(opt); -- cgit v1.2.3-70-g09d2