aboutsummaryrefslogtreecommitdiff
path: root/src/rc-status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc-status.c')
-rw-r--r--src/rc-status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc-status.c b/src/rc-status.c
index 999026e7..5cde05ef 100644
--- a/src/rc-status.c
+++ b/src/rc-status.c
@@ -114,10 +114,10 @@ int rc_status (int argc, char **argv)
}
while (optind < argc)
- levels = rc_strlist_add (levels, argv[optind++]);
+ rc_strlist_add (&levels, argv[optind++]);
if (! levels)
- levels = rc_strlist_add (NULL, rc_get_runlevel ());
+ rc_strlist_add (&levels, rc_get_runlevel ());
STRLIST_FOREACH (levels, level, i) {
print_level (level);