diff options
author | theuni <theuni-nospam@xbmc.org> | 2013-11-25 19:48:14 -0500 |
---|---|---|
committer | theuni <theuni-nospam@xbmc.org> | 2013-11-25 19:51:07 -0500 |
commit | 106f133de6bdb577c4135847fd703d08f525ba46 (patch) | |
tree | bb7385f33bb7b9c842daae2a79283df65f0715d5 /src | |
parent | 4c3e24644d3a873b11517d90f7d3f0a327a45bb7 (diff) |
Fix uninitialized variable added in b33b9a6fe
After discussing with BlueMatt, this appears to be harmless in its
current state since it's always set before it's used. Initialize it
anyway for readability and future safety.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h index cf803ae25e..1d3ac1cdbb 100644 --- a/src/main.h +++ b/src/main.h @@ -937,7 +937,7 @@ private: unsigned char chRejectCode; bool corruptionPossible; public: - CValidationState() : mode(MODE_VALID), nDoS(0) {} + CValidationState() : mode(MODE_VALID), nDoS(0), corruptionPossible(false) {} bool DoS(int level, bool ret = false, unsigned char chRejectCodeIn=0, std::string strRejectReasonIn="", bool corruptionIn=false) { |