Always initialize exit_set
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 17 Dec 2015 10:01:38 +0000 (11:01 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Thu, 17 Dec 2015 10:01:40 +0000 (11:01 +0100)
Be on the safe side.

src/pipestream.cpp

index b29ec70..afa6d56 100644 (file)
@@ -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