summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-12-14 14:48:37 -0500
committerStephen Gallagher <sgallagh@redhat.com>2010-12-14 15:35:28 -0500
commitdf606157d22a633aab8cc7d532117a1b20870b58 (patch)
tree5ebf6d4ec9026079545c6cd5a1aeec0f6f7fdc90
parentcde740ba683882198853aa32d4dca492f079be8b (diff)
downloadsssd-df606157d22a633aab8cc7d532117a1b20870b58.tar.gz
sssd-df606157d22a633aab8cc7d532117a1b20870b58.tar.xz
sssd-df606157d22a633aab8cc7d532117a1b20870b58.zip
Prevent uninitialized value error in monitor_quit
https://fedorahosted.org/sssd/ticket/724
-rw-r--r--src/monitor/monitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 7727d09b9..bee27e8b9 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);