aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortheuni <[email protected]>2013-11-25 19:48:14 -0500
committertheuni <[email protected]>2013-11-25 19:51:07 -0500
commit106f133de6bdb577c4135847fd703d08f525ba46 (patch)
treebb7385f33bb7b9c842daae2a79283df65f0715d5 /src
parentMerge pull request #3294 (diff)
downloaddiscoin-106f133de6bdb577c4135847fd703d08f525ba46.tar.xz
discoin-106f133de6bdb577c4135847fd703d08f525ba46.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/main.h2
1 files changed, 1 insertions, 1 deletions
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) {