aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r--libbb/appletlib.c2
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)
812 812
813#if defined(SINGLE_APPLET_MAIN) 813#if defined(SINGLE_APPLET_MAIN)
814 /* Only one applet is selected in .config */ 814 /* Only one applet is selected in .config */
815 if (strncmp(argv[0], "busybox", 7) == 0) { 815 if (argv[1] && strncmp(argv[0], "busybox", 7) == 0) {
816 /* "busybox <applet> <params>" should still work as expected */ 816 /* "busybox <applet> <params>" should still work as expected */
817 argv++; 817 argv++;
818 } 818 }