aboutsummaryrefslogtreecommitdiff
path: root/src/script.h
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-01-15 17:27:29 -0500
committerGavin Andresen <gavinandresen@gmail.com>2013-01-15 17:27:29 -0500
commit5f04881618a6d6f8deec4fad4899f46c060caa91 (patch)
tree792c622cd5cbe68d2b97a8872d2c53428aaf1a44 /src/script.h
parentc83c3cbe9740cee7c168a93e26d6448f78170595 (diff)
downloadbitcoin-5f04881618a6d6f8deec4fad4899f46c060caa91.tar.xz
Fix clang warnings
Diffstat (limited to 'src/script.h')
-rw-r--r--src/script.h4
1 files changed, 2 insertions, 2 deletions
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<typename Stream>
void Unserialize(Stream &s, int nType, int nVersion) {
- unsigned int nSize;
+ unsigned int nSize = 0;
s >> VARINT(nSize);
if (nSize < nSpecialScripts) {
std::vector<unsigned char> vch(GetSpecialSize(nSize), 0x00);