[hackers] [scc] [arg.h] Fix arg loop when operand isn't an option || Quentin Rameau
commit 07e97c2b9b7d58eeb6b69b6611fed4ed6150c379
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Tue Jul 12 18:13:15 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Tue Jul 12 18:17:00 2016 +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.
diff --git a/inc/arg.h b/inc/arg.h
index 511d56c..77dd3bf 100644
--- a/inc/arg.h
+++ b/inc/arg.h
_AT_@ -37,6 +37,8 @@ for (argv0 = *argv, argv++, argc--;\
#define ARGEND \
}\
+ } else {\
+ break;\
}\
}
Received on Mon Jul 18 2016 - 18:06:45 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 18 2016 - 18:13:28 CEST