From: Thomas Jarosch Date: Wed, 29 Sep 2010 12:34:21 +0000 (+0200) Subject: Initialize fd variable in constructor X-Git-Tag: v2.6~101 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=7ac95d85188b7e4f04e6d5f0d8a90dd7f4a04c40;p=libi2ncommon Initialize fd variable in constructor --- diff --git a/src/tmpfstream.hpp b/src/tmpfstream.hpp index a15df9a..f73924a 100644 --- a/src/tmpfstream.hpp +++ b/src/tmpfstream.hpp @@ -67,7 +67,7 @@ public: * @brief Constructs an unopened tmpfstreamTempl. */ tmpfstreamTempl() - : unlinked(false), bio::stream() + : unlinked(false), fd(-1), bio::stream() { } /** @@ -83,7 +83,7 @@ public: tmpfstreamTempl(const std::string& tmpnametemplate, std::ios_base::open_mode mode = std::ios_base::out, int buffer_size = -1 , int pback_size = -1) - : unlinked(false), bio::stream() + : unlinked(false), fd(-1), bio::stream() { open(tmpnametemplate,mode,buffer_size,pback_size); }