exclude the case of just "busybox" from previous commit

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-11-29 03:21:55 +01:00
parent 8f0af3b001
commit 0ab45da929

View 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++;
}