Always initialize exit_set
[libi2ncommon] / 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