Always initialize variables
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 09:13:41 +0000 (11:13 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 17 Oct 2011 09:13:41 +0000 (11:13 +0200)
src/oftmpstream.hxx

index a1feeb7..32deac9 100644 (file)
@@ -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: