exclude the case of just "busybox" from previous commit
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 29 Nov 2010 02:21:55 +0000 (03:21 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 29 Nov 2010 02:21:55 +0000 (03:21 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/appletlib.c

index c65180c5eeb45f473ad6d05a4bf12be92bf14e81..efd7a5a818b37f77c151beb7f4cb3d649d205b8f 100644 (file)
@@ -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++;
        }