Skip to content

Commit 03b6a1c

Browse files
committed
Merge pull request #3316
106f133 Fix uninitialized variable added in b33b9a6 (theuni)
2 parents 4c3e246 + 106f133 commit 03b6a1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ class CValidationState {
937937
unsigned char chRejectCode;
938938
bool corruptionPossible;
939939
public:
940-
CValidationState() : mode(MODE_VALID), nDoS(0) {}
940+
CValidationState() : mode(MODE_VALID), nDoS(0), corruptionPossible(false) {}
941941
bool DoS(int level, bool ret = false,
942942
unsigned char chRejectCodeIn=0, std::string strRejectReasonIn="",
943943
bool corruptionIn=false) {

0 commit comments

Comments
 (0)