From 106f133de6bdb577c4135847fd703d08f525ba46 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. --- src/main.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.h b/src/main.h index cf803ae25..1d3ac1cdb 100644 --- a/src/main.h +++ b/src/main.h @@ -937,7 +937,7 @@ private: unsigned char chRejectCode; bool corruptionPossible; public: - CValidationState() : mode(MODE_VALID), nDoS(0) {} + CValidationState() : mode(MODE_VALID), nDoS(0), corruptionPossible(false) {} bool DoS(int level, bool ret = false, unsigned char chRejectCodeIn=0, std::string strRejectReasonIn="", bool corruptionIn=false) {