From 3e89dbb132a211ebb94bdc3b626f3c6c1d0b29dc Mon Sep 17 00:00:00 2001 From: theuni Date: Mon, 25 Nov 2013 19:48:14 -0500 Subject: 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 Rebased-From: 106f133de6bdb577c4135847fd703d08f525ba46 --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3