From 48495f67ed893c4ee056099ae0ca5a2afacde93c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 12 Jun 2014 13:15:35 +0200 Subject: [PATCH] Fix bogus warnings about dumping large paths Also, yay for C++11 non-static initialisers. --- src/libutil/serialise.hh | 4 ++-- 1 file 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) { }