[git commit master 1/1] exclude the case of just "busybox" from previous commit

Denys Vlasenko vda.linux at googlemail.com
Mon Nov 29 02:21:55 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=0ab45da92990072a23fda0f35d068743b1067cf3
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 libbb/appletlib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index c65180c..efd7a5a 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++;
 	}
-- 
1.7.2.2



More information about the busybox-cvs mailing list