aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2016-01-01 23:44:08 +0100
committerMattias Andrée <maandree@member.fsf.org>2016-01-01 23:44:08 +0100
commitc43ae0e00ab6f37452ddc4128dc82a5da721f0ad (patch)
tree8602180289879df9c95cc37a90e5f97385cd188b /src/common.h
parentm (diff)
downloadsat-c43ae0e00ab6f37452ddc4128dc82a5da721f0ad.tar.gz
sat-c43ae0e00ab6f37452ddc4128dc82a5da721f0ad.tar.bz2
sat-c43ae0e00ab6f37452ddc4128dc82a5da721f0ad.tar.xz
bug fix
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h2
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])) \