From e3de4e64170529ed116053c68b3aa649b76f1c8f Mon Sep 17 00:00:00 2001 From: theuni Date: Mon, 25 Nov 2013 19:48:14 -0500 Subject: [PATCH] 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 --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.h b/src/main.h index af039f99b..33cdd44b4 100644 --- a/src/main.h +++ b/src/main.h @@ -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;