From 8655e0f280096836ae9af9bca6417c4d9b07f7ac Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 17 Oct 2011 11:13:41 +0200 Subject: [PATCH] Always initialize variables --- src/oftmpstream.hxx | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) 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: -- 1.7.1