git://developer.intra2net.com
/
libi2ncommon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Always initialize variables
[libi2ncommon]
/
src
/
oftmpstream.hxx
diff --git
a/src/oftmpstream.hxx
b/src/oftmpstream.hxx
index
a1feeb7
..
32deac9
100644
(file)
--- 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: