From 6b04d1cdc281b9b0dee5f59394a1c41d8b96c4a1 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 2 May 2019 10:15:30 -0400 Subject: cmUVStreambuf: Initialize all members on construction Avoid leaving any members uninitialized after construction even if they are later initialized before use by methods. This helps convince static analysis tools that the members are not used uninitialized. --- Source/cmUVStreambuf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/cmUVStreambuf.h b/Source/cmUVStreambuf.h index 29e4fde..0ae532b 100644 --- a/Source/cmUVStreambuf.h +++ b/Source/cmUVStreambuf.h @@ -68,10 +68,10 @@ protected: private: uv_stream_t* Stream = nullptr; - void* OldStreamData; - const std::size_t PutBack; + void* OldStreamData = nullptr; + const std::size_t PutBack = 0; std::vector InputBuffer; - bool EndOfFile; + bool EndOfFile = false; void StreamReadStartStop(); -- cgit v0.12