From df606157d22a633aab8cc7d532117a1b20870b58 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 14 Dec 2010 14:48:37 -0500 Subject: Prevent uninitialized value error in monitor_quit https://fedorahosted.org/sssd/ticket/724 --- src/monitor/monitor.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/monitor') diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 7727d09b..bee27e8b 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -1202,6 +1202,7 @@ static void monitor_quit(struct tevent_context *ev, svc->name, svc->pid, strerror(error))); } + error = 0; do { errno = 0; pid = waitpid(svc->pid, &status, WNOHANG); -- cgit