From 5f04881618a6d6f8deec4fad4899f46c060caa91 Mon Sep 17 00:00:00 2001 From: Gavin Andresen Date: Tue, 15 Jan 2013 17:27:29 -0500 Subject: Fix clang warnings --- src/script.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script.h') diff --git a/src/script.h b/src/script.h index 7b0643f70a..2d861d2c92 100644 --- a/src/script.h +++ b/src/script.h @@ -434,7 +434,7 @@ public: // Immediate operand if (opcode <= OP_PUSHDATA4) { - unsigned int nSize; + unsigned int nSize = 0; if (opcode < OP_PUSHDATA1) { nSize = opcode; @@ -646,7 +646,7 @@ public: template void Unserialize(Stream &s, int nType, int nVersion) { - unsigned int nSize; + unsigned int nSize = 0; s >> VARINT(nSize); if (nSize < nSpecialScripts) { std::vector vch(GetSpecialSize(nSize), 0x00); -- cgit v1.2.3