aboutsummaryrefslogtreecommitdiffstats
path: root/cg-base.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cg-base.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cg-base.c b/cg-base.c
index d98c9ed..ad03937 100644
--- a/cg-base.c
+++ b/cg-base.c
@@ -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++;