X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcore%2Fservice.c;h=34d24ffa92b54ea1eb843809d200df7a26aea9de;hp=aad6d664396e0bc594e6eb727bdf1646b467e6fa;hb=68b29a9fca915c83b9192790ec61189430cd5de6;hpb=0b2665c33de93d576047bf55ecff9e1435033f54 diff --git a/src/core/service.c b/src/core/service.c index aad6d6643..34d24ffa9 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -127,9 +127,9 @@ static void service_init(Unit *u) { s->restart_usec = DEFAULT_RESTART_USEC; s->type = _SERVICE_TYPE_INVALID; - s->watchdog_watch.type = WATCH_INVALID; + watch_init(&s->watchdog_watch); + watch_init(&s->timer_watch); - s->timer_watch.type = WATCH_INVALID; #ifdef HAVE_SYSV_COMPAT s->sysv_start_priority = -1; s->sysv_start_priority_from_rcnd = -1;