From 0444ad71812773d54d70ee9953a3b22251a61cab Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Jul 2018 05:46:26 -1100 Subject: [PATCH] Test --- src/cc/assets.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc/assets.cpp b/src/cc/assets.cpp index 37b2d7b3b..63b2bcc8f 100644 --- a/src/cc/assets.cpp +++ b/src/cc/assets.cpp @@ -188,7 +188,8 @@ CPubKey pubkey2pk(std::vector pubkey) CPubKey GetUnspendable(uint8_t evalcode,uint8_t *unspendablepriv) { static CPubKey nullpk; - memset(unspendablepriv,0,32); + if ( unspendablepriv != 0 ) + memset(unspendablepriv,0,32); if ( evalcode == EVAL_ASSETS ) { if ( unspendablepriv != 0 )