aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2021-08-13 10:46:57 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2021-08-13 10:46:57 -0500
commitb5e4c2c2db3d32dcc70426e058132c52e32603f1 (patch)
tree35c9c89f8652003c0632ee080611b432f11ee611 /src/rc
parent0a97bad6c9ba77285477aef8713e088eea4ab106 (diff)
Revert "openrc-init: ignore an empty string in argv[1]"
This reverts commit dec9ef200b0d7e96993e2725792a9e7abe9c5f1f. This check is no longer needed since rc_runlevel_exists() is fixed. X-Gentoo-Bug: 803536 X-Gentoo-Bug-URL: https://bugs.gentoo.org/803536 Closes: https://github.com/OpenRC/openrc/pull/431
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 00423746..c27e2086 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 && argv[1][0] != '\0')
+ if (argc > 1)
default_runlevel = argv[1];
else
default_runlevel = NULL;