Dennis Vlasenko pointed out that run_applet_by_name sets bb_applet_name already.
authorRob Landley <rob@landley.net>
Sun, 7 May 2006 01:44:23 +0000 (01:44 -0000)
committerRob Landley <rob@landley.net>
Sun, 7 May 2006 01:44:23 +0000 (01:44 -0000)
applets/busybox.c

index be1f19ad29708d4e91f1b893bf10a5aa6c0d546d..344edc64cb1bd7c2547ee0e8af488ec0ecbd378d 100644 (file)
@@ -143,7 +143,7 @@ int busybox_main(int argc, char **argv)
                        printf("\n\n");
                        exit(0);
                }
-       } else run_applet_by_name(bb_applet_name=argv[1], argc-1, argv+1);
+       } else run_applet_by_name(argv[1], argc-1, argv+1);
 
        bb_error_msg_and_die("applet not found");
 }