aboutsummaryrefslogtreecommitdiffstats
path: root/arg.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-19 18:15:27 +0200
committerMattias Andrée <maandree@kth.se>2017-10-19 18:15:27 +0200
commit683270a1db8d09fde95315c9d146a32c5be55dae (patch)
tree7df7cdd606157e313b8e6c5e62389a837aee133a /arg.h
parentFix error reporting: argv0 as missing (diff)
downloadxtest-683270a1db8d09fde95315c9d146a32c5be55dae.tar.gz
xtest-683270a1db8d09fde95315c9d146a32c5be55dae.tar.bz2
xtest-683270a1db8d09fde95315c9d146a32c5be55dae.tar.xz
Fix arg.h
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'arg.h')
-rw-r--r--arg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arg.h b/arg.h
index b8169f3..6260f78 100644
--- a/arg.h
+++ b/arg.h
@@ -10,7 +10,7 @@ extern char *argv0;
/* use main(int argc, char *argv[]) */
#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\
- argv[0] && argv[0][1];\
+ argv[0] && argv[0][0] && argv[0][1];\
argc--, argv++) {\
char argc_;\
char **argv_;\