aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-10-19 15:38:15 +0200
committerMattias Andrée <maandree@kth.se>2017-10-19 15:38:15 +0200
commit63cac97c24b36295e26600238938c748d676a190 (patch)
treebc88b0ba1a68ac8ceea70a52d5337013411c6cd3
parentRewrite and relicense (diff)
downloadorphan-reaper-2.3.1.tar.gz
orphan-reaper-2.3.1.tar.bz2
orphan-reaper-2.3.1.tar.xz
Fix arg.h2.3.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rw-r--r--arg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arg.h b/arg.h
index f81a0b0..09a5350 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_;\