aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--applets/busybox.c1
-rw-r--r--busybox.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index c8c060be7..8f27dfb8e 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -203,6 +203,7 @@ int busybox_main(int argc, char **argv)
}
while(index<=index2)
*index++='\0';
+ argv[ps_index]=NULL;
return (main(argc, argv));
}
diff --git a/busybox.c b/busybox.c
index c8c060be7..8f27dfb8e 100644
--- a/busybox.c
+++ b/busybox.c
@@ -203,6 +203,7 @@ int busybox_main(int argc, char **argv)
}
while(index<=index2)
*index++='\0';
+ argv[ps_index]=NULL;
return (main(argc, argv));
}