From ba8c0bef6bbb3f8cb92e0bf381fbe5a84584506f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 13 Apr 2010 20:27:10 +0200 Subject: [PATCH] service: fix segfault --- service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.c b/service.c index 86406e80..0a70bb0a 100644 --- a/service.c +++ b/service.c @@ -624,7 +624,7 @@ static int service_load_sysv_path(Service *s, const char *path) { s->valid_no_process = true; /* Don't timeout special services during boot (like fsck) */ - if (!chars_intersect("12345", s->sysv_runlevels)) + if (s->sysv_runlevels && !chars_intersect("12345", s->sysv_runlevels)) s->timeout_usec = -1; u->meta.load_state = UNIT_LOADED; -- 2.39.5