aboutsummaryrefslogtreecommitdiff
path: root/initd
diff options
context:
space:
mode:
authorDavid Oberhollenzer <goliath@infraroot.at>2019-06-16 16:09:49 +0200
committerDavid Oberhollenzer <goliath@infraroot.at>2019-06-16 16:09:49 +0200
commit1c72dd2c2faf556db956507f72563109ea2987b4 (patch)
tree53d0a7db3f0fc0c80798a82db93fa2b7d5a5ee73 /initd
parent2e89d32a75f26697178f1eca2ca4cf4915042c41 (diff)
Fix remove by id
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'initd')
-rw-r--r--initd/supervisor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/initd/supervisor.c b/initd/supervisor.c
index 37205ef..8ac69af 100644
--- a/initd/supervisor.c
+++ b/initd/supervisor.c
@@ -317,7 +317,7 @@ static service_t *remove_by_id(service_t **list, int id)
if (prev == NULL) {
*list = svc->next;
} else {
- prev = svc->next;
+ prev->next = svc->next;
}
}