aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
Diffstat (limited to 'libbb')
-rw-r--r--libbb/getopt32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index 611333c66..54dc7857d 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -338,7 +338,8 @@ getopt32(char **argv, const char *applet_opts, ...)
338 338
339 int spec_flgs = 0; 339 int spec_flgs = 0;
340 340
341 argc = 0; 341 /* skip 0: some applets cheat: they do not actually HAVE argv[0] */
342 argc = 1;
342 while (argv[argc]) 343 while (argv[argc])
343 argc++; 344 argc++;
344 345