diff options
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -879,7 +879,8 @@ extern int init_main(int argc, char **argv) | |||
879 | 879 | ||
880 | /* Fix up argv[0] to be certain we claim to be init */ | 880 | /* Fix up argv[0] to be certain we claim to be init */ |
881 | strncpy(argv[0], "init", strlen(argv[0])+1); | 881 | strncpy(argv[0], "init", strlen(argv[0])+1); |
882 | strncpy(argv[1], "\0", strlen(argv[1])+1); | 882 | if (argc > 1) |
883 | strncpy(argv[1], "\0", strlen(argv[1])+1); | ||
883 | 884 | ||
884 | /* Now run everything that needs to be run */ | 885 | /* Now run everything that needs to be run */ |
885 | 886 | ||