aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-17 00:25:08 +0000
committerRoy Marples <roy@marples.name>2008-04-17 00:25:08 +0000
commit57e1dd7389229718b170d5c6fe52b0b051729801 (patch)
treeb954c6390c2cbd4b53da0884b7dc024e3f4ffad1 /src/rc
parentc89b3763fb9b940e43c61b2dba1653a0d5229b91 (diff)
Fix rc-status some more.
Diffstat (limited to 'src/rc')
-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 84c92e03..e4917c86 100644
--- a/src/rc/rc-status.c
+++ b/src/rc/rc-status.c
@@ -149,6 +149,8 @@ static void print_services(const char *runlevel, RC_STRINGLIST *services)
l = rc_deptree_depends(deptree, types, services, r ? r : runlevel,
RC_DEP_STRICT | RC_DEP_TRACE | RC_DEP_START);
free(r);
+ if (!l)
+ return;
TAILQ_FOREACH(s, l, entries) {
TAILQ_FOREACH(t, services, entries)
if (strcmp(t->value, s->value) == 0)