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) { }