From af6d9e2684cdd5c8e685af33db6e0365fe9d1d51 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 12 Mar 2015 07:45:10 -0600 Subject: [PATCH] sched: Do not use uninitialized boolean in waitpid(). From Juha Niskanen --- sched/sched/sched_waitpid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sched/sched/sched_waitpid.c b/sched/sched/sched_waitpid.c index 61c846e826..5fb6987171 100644 --- a/sched/sched/sched_waitpid.c +++ b/sched/sched/sched_waitpid.c @@ -184,7 +184,7 @@ pid_t waitpid(pid_t pid, int *stat_loc, int options) { FAR struct tcb_s *ctcb; FAR struct task_group_s *group; - bool mystat; + bool mystat = false; int err; int ret;