diff options
author | theuni <theuni-nospam@xbmc.org> | 2013-11-25 19:48:14 -0500 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2013-11-26 10:32:16 +0100 |
commit | 3e89dbb132a211ebb94bdc3b626f3c6c1d0b29dc (patch) | |
tree | 5ef697b10cbb14b939b87c261fe09c39ad3b2921 /src | |
parent | 5c55bf5af00aa9b5888b0469501fd113a144967f (diff) |
Fix uninitialized variable added in 5c55bf5
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.
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com>
Rebased-From: 106f133de6bdb577c4135847fd703d08f525ba46
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 e5226b6942..76020420cb 100644 --- a/src/main.h +++ b/src/main.h @@ -1883,7 +1883,7 @@ private: int nDoS; bool corruptionPossible; public: - CValidationState() : mode(MODE_VALID), nDoS(0) {} + CValidationState() : mode(MODE_VALID), nDoS(0), corruptionPossible(false) {} bool DoS(int level, bool ret = false, bool corruptionIn = false) { if (mode == MODE_ERROR) return ret; |