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.

Rebased-from: 106f133de6bdb577c4135847fd703d08f525ba46
This commit is contained in:
theuni 2013-11-25 19:48:14 -05:00 committed by Warren Togami
parent 8ede0c3460
commit e3de4e6417

View File

@ -1909,7 +1909,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;