service: fix segfault

This commit is contained in:
Lennart Poettering 2010-04-13 20:27:10 +02:00
parent 6f5e3f3527
commit ba8c0bef6b
1 changed files with 1 additions and 1 deletions

View File

@ -624,7 +624,7 @@ static int service_load_sysv_path(Service *s, const char *path) {
s->valid_no_process = true; s->valid_no_process = true;
/* Don't timeout special services during boot (like fsck) */ /* 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; s->timeout_usec = -1;
u->meta.load_state = UNIT_LOADED; u->meta.load_state = UNIT_LOADED;