| author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-08-22 06:43:57 (GMT) |
|---|---|---|
| committer | Pekka Paalanen <ppaalanen@gmail.com> | 2012-08-22 07:12:37 (GMT) |
| commit | 6510ea15b2538443fc26329b0e2c58bcef43d986 (patch) (side-by-side diff) | |
| tree | 7c9e23cb3ee0ed46549bcdb6f4b751a773ff8ad1 | |
| parent | 5265df7d8050c92fa5a076e6f81ccace872572cc (diff) | |
| download | androgenizer-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.
| -rw-r--r-- | options.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
