diff options
Diffstat (limited to '')
-rw-r--r-- | src/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h index 92dbaf4..0808e11 100644 --- a/src/common.h +++ b/src/common.h @@ -181,7 +181,7 @@ const char *argv0 = name; #define NO_OPTIONS \ do { \ int i; \ - if (!strcmp(argv[1], "--")) \ + if ((argc > 1) && !strcmp(argv[1], "--")) \ argv++, argc--; \ for (i = 1; i < argc; i++) \ if (strchr("-", argv[i][0])) \ |