summaryrefslogtreecommitdiff
authorPekka Paalanen <ppaalanen@gmail.com>2012-08-22 06:43:57 (GMT)
committer Pekka Paalanen <ppaalanen@gmail.com>2012-08-22 07:12:37 (GMT)
commit6510ea15b2538443fc26329b0e2c58bcef43d986 (patch) (side-by-side diff)
tree7c9e23cb3ee0ed46549bcdb6f4b751a773ff8ad1
parent5265df7d8050c92fa5a076e6f81ccace872572cc (diff)
downloadandrogenizer-6510ea15b2538443fc26329b0e2c58bcef43d986.tar.gz
androgenizer-6510ea15b2538443fc26329b0e2c58bcef43d986.tar.bz2
options: fix logic to allow removing an indentation level
This change only changes the code, but leaves the whitespace fixes for the next commit.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/options.c b/options.c
index d4719e5..b57427c 100644
--- a/options.c
+++ b/options.c
@@ -534,9 +534,10 @@ struct project *options_parse(int argc, char **args)
if (nm != MODE_UNDEFINED) {
free(arg);
skip = 0;
+ mode = nm;
+ continue;
}
- if (nm == MODE_UNDEFINED) {
if (skip) {
skip = 0;
continue;
@@ -638,7 +639,6 @@ struct project *options_parse(int argc, char **args)
case MODE_END:
break;
}
- } else mode = nm;
}
if (p && m)
add_module(p, m);