From f97d4f0710d3aea6aba83d2fe38941ca63e2f325 Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Tue, 26 Sep 2017 10:18:05 +0200 Subject: [PATCH] Fix variable to be compared uninitialized nSize could be compared in an uninitialized state below. So initialize it to zero, to be safe. --- src/script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script.h b/src/script.h index 4c3dacb..a401620 100755 --- a/src/script.h +++ b/src/script.h @@ -437,7 +437,7 @@ class CScript : public std::vector // Immediate operand if (opcode <= OP_PUSHDATA4) { - unsigned int nSize; + unsigned int nSize = 0; if (opcode < OP_PUSHDATA1) { nSize = opcode;