From 57e1dd7389229718b170d5c6fe52b0b051729801 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 17 Apr 2008 00:25:08 +0000 Subject: [PATCH] Fix rc-status some more. --- src/rc/rc-status.c | 2 ++ 1 file changed, 2 insertions(+) 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)