From: Thomas Jarosch Date: Mon, 17 Oct 2011 09:13:41 +0000 (+0200) Subject: Always initialize variables X-Git-Tag: v2.6~33 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=8655e0f280096836ae9af9bca6417c4d9b07f7ac;p=libi2ncommon Always initialize variables --- diff --git a/src/oftmpstream.hxx b/src/oftmpstream.hxx index a1feeb7..32deac9 100644 --- a/src/oftmpstream.hxx +++ b/src/oftmpstream.hxx @@ -28,7 +28,9 @@ class fdoutbuf : public std::streambuf { protected: int fd; // file descriptor public: - fdoutbuf () { + fdoutbuf () + : fd(-1) + { } void set_fd(int _fd); protected: