From 1c72dd2c2faf556db956507f72563109ea2987b4 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 16 Jun 2019 16:09:49 +0200 Subject: Fix remove by id Signed-off-by: David Oberhollenzer --- initd/supervisor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'initd/supervisor.c') 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; } } -- cgit v1.2.3