diff options
author | Brad King <brad.king@kitware.com> | 2019-05-02 14:15:30 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2019-05-07 16:35:22 (GMT) |
commit | 6b04d1cdc281b9b0dee5f59394a1c41d8b96c4a1 (patch) | |
tree | 687b09ad1f20b986c9a866a6331df1593d568eae /Source/cmUVStreambuf.h | |
parent | fa077acba51393030586aa50f5eff9d6034c5c11 (diff) | |
download | CMake-6b04d1cdc281b9b0dee5f59394a1c41d8b96c4a1.zip CMake-6b04d1cdc281b9b0dee5f59394a1c41d8b96c4a1.tar.gz CMake-6b04d1cdc281b9b0dee5f59394a1c41d8b96c4a1.tar.bz2 |
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.
Diffstat (limited to 'Source/cmUVStreambuf.h')
-rw-r--r-- | Source/cmUVStreambuf.h | 6 |
1 files 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<CharT> InputBuffer; - bool EndOfFile; + bool EndOfFile = false; void StreamReadStartStop(); |