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.
This commit is contained in:
Brad King
2019-05-02 10:15:30 -04:00
committed by Kyle Edwards
parent fa077acba5
commit 6b04d1cdc2

View File

@@ -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();