diff options
author | Mattias Andrée <maandree@kth.se> | 2017-10-19 18:15:27 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2017-10-19 18:15:27 +0200 |
commit | 683270a1db8d09fde95315c9d146a32c5be55dae (patch) | |
tree | 7df7cdd606157e313b8e6c5e62389a837aee133a /arg.h | |
parent | Fix error reporting: argv0 as missing (diff) | |
download | xtest-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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_;\ |