This commit is contained in:
jl777
2018-07-21 05:46:26 -11:00
parent 502037d98f
commit 0444ad7181

View File

@@ -188,7 +188,8 @@ CPubKey pubkey2pk(std::vector<uint8_t> pubkey)
CPubKey GetUnspendable(uint8_t evalcode,uint8_t *unspendablepriv) CPubKey GetUnspendable(uint8_t evalcode,uint8_t *unspendablepriv)
{ {
static CPubKey nullpk; static CPubKey nullpk;
memset(unspendablepriv,0,32); if ( unspendablepriv != 0 )
memset(unspendablepriv,0,32);
if ( evalcode == EVAL_ASSETS ) if ( evalcode == EVAL_ASSETS )
{ {
if ( unspendablepriv != 0 ) if ( unspendablepriv != 0 )