aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/openrc-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rc/openrc-init.c b/src/rc/openrc-init.c
index c27e2086..00423746 100644
--- a/src/rc/openrc-init.c
+++ b/src/rc/openrc-init.c
@@ -263,7 +263,7 @@ int main(int argc, char **argv)
printf("OpenRC init version %s starting\n", VERSION);
- if (argc > 1)
+ if (argc > 1 && argv[1][0] != '\0')
default_runlevel = argv[1];
else
default_runlevel = NULL;