mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-15 09:58:51 +00:00
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
This commit is contained in:
parent
5c55bf5af0
commit
3e89dbb132
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user