diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index c65180c5e..efd7a5a81 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c @@ -812,7 +812,7 @@ int main(int argc UNUSED_PARAM, char **argv) #if defined(SINGLE_APPLET_MAIN) /* Only one applet is selected in .config */ - if (strncmp(argv[0], "busybox", 7) == 0) { + if (argv[1] && strncmp(argv[0], "busybox", 7) == 0) { /* "busybox <applet> <params>" should still work as expected */ argv++; } |