aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc-status.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-17 14:31:44 +0000
committerRoy Marples <roy@marples.name>2008-03-17 14:31:44 +0000
commitb2f7606b2366bd4c7196f3ce786375353e942e80 (patch)
treef7c377485f3a3a755b1d6a74ecb27bc8811da6f8 /src/rc/rc-status.c
parent4c1466642351ddb01cc7353601153a79326f18f7 (diff)
We should check for NULL here.
Diffstat (limited to 'src/rc/rc-status.c')
-rw-r--r--src/rc/rc-status.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rc/rc-status.c b/src/rc/rc-status.c
index 9f7167f6..c7173e29 100644
--- a/src/rc/rc-status.c
+++ b/src/rc/rc-status.c
@@ -185,6 +185,8 @@ int rc_status (int argc, char **argv)
TAILQ_FOREACH(l, levels, entries) {
print_level(l->value);
services = rc_services_in_runlevel(l->value);
+ if (! services)
+ continue;
if (deptree) {
if (! types) {
types = rc_stringlist_new();