aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authortheuni <theuni-nospam@xbmc.org>2013-11-25 19:48:14 -0500
committertheuni <theuni-nospam@xbmc.org>2013-11-25 19:51:07 -0500
commit106f133de6bdb577c4135847fd703d08f525ba46 (patch)
treebb7385f33bb7b9c842daae2a79283df65f0715d5 /src/main.h
parent4c3e24644d3a873b11517d90f7d3f0a327a45bb7 (diff)
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/main.h')
-rw-r--r--src/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.h b/src/main.h
index cf803ae25e..1d3ac1cdbb 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) {