From daf9c5d4d646f0b90d54af1edc714998d0831923 Mon Sep 17 00:00:00 2001 From: Timothy Stack Date: Thu, 6 Apr 2017 06:36:21 -0700 Subject: [PATCH] [grep_proc] uninitialized value --- src/grep_proc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grep_proc.cc b/src/grep_proc.cc index facc220e..22555b26 100644 --- a/src/grep_proc.cc +++ b/src/grep_proc.cc @@ -237,7 +237,7 @@ void grep_proc::child_loop(void) void grep_proc::cleanup(void) { if (this->gp_child != -1 && this->gp_child != 0) { - int status; + int status = 0; kill(this->gp_child, SIGTERM); while (waitpid(this->gp_child, &status, 0) < 0 && (errno == EINTR)) {