diff options
author | Mattias Andrée <maandree@kth.se> | 2019-10-07 20:25:06 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2019-10-07 20:25:06 +0200 |
commit | f4c4ba55c74982e03bc41852156dac857d91b06d (patch) | |
tree | 581201eac6899473c5b9ec871d0f4b95961c5526 /cg-base.c | |
parent | Change coding style and fix warnings (diff) | |
download | cg-tools-f4c4ba55c74982e03bc41852156dac857d91b06d.tar.gz cg-tools-f4c4ba55c74982e03bc41852156dac857d91b06d.tar.bz2 cg-tools-f4c4ba55c74982e03bc41852156dac857d91b06d.tar.xz |
Minor fixes1.4
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | cg-base.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -572,7 +572,9 @@ main(int argc, char *argv[]) } opt[0] = *args++; opt[2] = '\0'; - if ((*opt != '-') && (*opt != '+')) + if (*opt != '-' && *opt != '+') + break; + if (!*args) break; while (*args) { opt[1] = *args++; |