about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-06-12T11·15+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-06-12T11·15+0200
commit48495f67ed893c4ee056099ae0ca5a2afacde93c (patch)
tree6abf77f1829f0404b7a25bc6788723f5200f2582 /src
parent0960d674d48808eaaa3475899f45cfd6c7c3e51d (diff)
Fix bogus warnings about dumping large paths
Also, yay for C++11 non-static initialisers.
Diffstat (limited to 'src')
-rw-r--r--src/libutil/serialise.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/serialise.hh b/src/libutil/serialise.hh
index 3d296cf6d8d6..1b3fb744fdf5 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) { }