Permalink
Browse files

Initialize file descriptors to -1

Fixes CID1295469

(cherry picked from commit 2307c00)
  • Loading branch information...
1 parent 8e30209 commit 8fabf4d30dd25373586e048af0dc18932ae3484d @cmouse cmouse committed with rubenk Apr 27, 2015
Showing with 2 additions and 0 deletions.
  1. +2 −0 modules/remotebackend/pipeconnector.cc
@@ -17,6 +17,8 @@ PipeConnector::PipeConnector(std::map<std::string,std::string> options) {
d_pid = -1;
d_fp = NULL;
+ d_fd1[0] = d_fd1[1] = -1;
+ d_fd2[0] = d_fd2[1] = -1;
}
PipeConnector::~PipeConnector(){

0 comments on commit 8fabf4d

Please sign in to comment.