diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-06-12 13:15:35 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-06-12 13:15:35 +0200 |
commit | 48495f67ed893c4ee056099ae0ca5a2afacde93c (patch) | |
tree | 6abf77f1829f0404b7a25bc6788723f5200f2582 /src/libutil/serialise.hh | |
parent | 0960d674d48808eaaa3475899f45cfd6c7c3e51d (diff) |
Fix bogus warnings about dumping large paths
Also, yay for C++11 non-static initialisers.
Diffstat (limited to 'src/libutil/serialise.hh')
-rw-r--r-- | src/libutil/serialise.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh index 3d296cf6d..1b3fb744f 100644 --- a/src/libutil/serialise.hh +++ b/src/libutil/serialise.hh @@ -72,8 +72,8 @@ struct BufferedSource : Source struct FdSink : BufferedSink { int fd; - bool warn; - size_t written; + bool warn = false; + size_t written = 0; FdSink() : fd(-1) { } FdSink(int fd) : fd(fd) { } |