aboutsummaryrefslogtreecommitdiff
path: root/src/script.h
diff options
context:
space:
mode:
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 ae316b33c4..0b481eb605 100644
--- a/src/script.h
+++ b/src/script.h
@@ -435,7 +435,7 @@ public:
// Immediate operand
if (opcode <= OP_PUSHDATA4)
{
- unsigned int nSize;
+ unsigned int nSize = 0;
if (opcode < OP_PUSHDATA1)
{
nSize = opcode;
@@ -647,7 +647,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);