btcs

bitcoin script parser/evaluator/compiler/decompiler
git clone git://jb55.com/btcs
Log | Files | Refs | README | LICENSE

commit 302276fab1bffdba8c21c1ee9b5ca825c2376b38
parent ea37dfd1d6eb809c028c7b4ecfe6180f5ccc36b8
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 21 Dec 2017 06:47:57 -0800

ifdup: copy

Diffstat:
Mscript.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/script.c b/script.c @@ -358,7 +358,7 @@ script_eval(const u8 *script, size_t script_size, struct stack *stack, SCRIPTERR("INVALID_STACK_OPERATION"); struct val val = stack_top_val(stack, -1); if (cast_to_bool(val)) - stack_push_val(stack, val); + stack_push_val(stack, val_copy(val)); } break;