commit 07e97c2b9b7d58eeb6b69b6611fed4ed6150c379
parent 52f26ada8dedab3823cf9dc42625391830bf9619
Author: Quentin Rameau <quinq@fifth.space>
Date: Tue, 12 Jul 2016 18:13:15 +0200
[arg.h] Fix arg loop when operand isn't an option
Break argv parsing loop if string is neither an option (nor an operand)
instead of skipping it.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/inc/arg.h b/inc/arg.h
@@ -37,6 +37,8 @@ for (argv0 = *argv, argv++, argc--;\
#define ARGEND \
}\
+ } else {\
+ break;\
}\
}