summaryrefslogtreecommitdiff
path: root/lib/src/delsvc.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-08 13:30:20 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-08 14:05:39 +0200
commit7d8ceb810faa085650d2d74e3d1c857b8b755ca3 (patch)
treecf58443a3df0c52be479648ffccd13f6d23fc403 /lib/src/delsvc.c
parentb81668e045b6a2105b7b0b9e2e5afa8e631e6ec5 (diff)
Cleanup: split rdsvc into multiple functions
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
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;