summaryrefslogtreecommitdiff
path: root/Source/cmUVStreambuf.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-05-02 10:15:30 -0400
committerKyle Edwards <kyle.edwards@kitware.com>2019-05-07 12:35:22 -0400
commit6b04d1cdc281b9b0dee5f59394a1c41d8b96c4a1 (patch)
tree687b09ad1f20b986c9a866a6331df1593d568eae /Source/cmUVStreambuf.h
parentfa077acba51393030586aa50f5eff9d6034c5c11 (diff)
downloadcmake-6b04d1cdc281b9b0dee5f59394a1c41d8b96c4a1.tar.gz
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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmUVStreambuf.h b/Source/cmUVStreambuf.h
index 29e4fde108..0ae532b0f0 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();