diff options
-rw-r--r-- | arg.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ #define ARGBEGIN \ for (;;) { \ - ++argv, --argc; \ + if (argc > 0) \ + ++argv, --argc; \ if (argc == 0 || (*argv)[0] != '-') \ break; \ if ((*argv)[1] == '-' && !(*argv)[2]) { \ |