guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

25/376: Fix bogus warnings about dumping large paths


From: Ludovic Courtès
Subject: 25/376: Fix bogus warnings about dumping large paths
Date: Wed, 28 Jan 2015 22:03:48 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit 48495f67ed893c4ee056099ae0ca5a2afacde93c
Author: Eelco Dolstra <address@hidden>
Date:   Thu Jun 12 13:15:35 2014 +0200

    Fix bogus warnings about dumping large paths
    
    Also, yay for C++11 non-static initialisers.
---
 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 3d296cf..1b3fb74 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) { }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]