summaryrefslogtreecommitdiff
path: root/lib/src/delsvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/delsvc.c')
-rw-r--r--lib/src/delsvc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/src/delsvc.c b/lib/src/delsvc.c
index 7370653..968aa0d 100644
--- a/lib/src/delsvc.c
+++ b/lib/src/delsvc.c
@@ -23,6 +23,9 @@ void delsvc(service_t *svc)
{
exec_t *e;
+ if (svc == NULL)
+ return;
+
while (svc->exec != NULL) {
e = svc->exec;
svc->exec = e->next;