From: Thomas Jarosch Date: Thu, 17 Dec 2015 10:01:38 +0000 (+0100) Subject: Always initialize exit_set X-Git-Tag: v2.8~2 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=1d7539d5f0a1097592a6efdb6a053d961cc1ba10;p=libi2ncommon Always initialize exit_set Be on the safe side. --- diff --git a/src/pipestream.cpp b/src/pipestream.cpp index b29ec70..afa6d56 100644 --- a/src/pipestream.cpp +++ b/src/pipestream.cpp @@ -45,7 +45,7 @@ std::string capture_exec(const std::string& command, ExecResult &rescode) { std::string output; - bool exit_set; + bool exit_set = false; int exit_status_waitpid; // set the results to false until we are sure we have proper values