Browse Source

Fix harmless valgrind warning

master
Con Kolivas 10 years ago
parent
commit
d5be610d40
  1. 2
      src/stratifier.c

2
src/stratifier.c

@ -331,7 +331,7 @@ static void generate_coinbase(ckpool_t *ckp, workbase_t *wb)
len += wb->enonce1varlen; len += wb->enonce1varlen;
len += wb->enonce2varlen; len += wb->enonce2varlen;
wb->coinb2bin = ckalloc(128); wb->coinb2bin = ckzalloc(128);
memcpy(wb->coinb2bin, "\x0a\x63\x6b\x70\x6f\x6f\x6c", 7); memcpy(wb->coinb2bin, "\x0a\x63\x6b\x70\x6f\x6f\x6c", 7);
wb->coinb2len = 7; wb->coinb2len = 7;
if (ckp->btcsig) { if (ckp->btcsig) {

Loading…
Cancel
Save