Browse Source

Zero wb->logdir even if we don't write to the share log since we still use the value of it

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

2
src/stratifier.c

@ -647,7 +647,7 @@ static void add_base(ckpool_t *ckp, workbase_t *wb, bool *new_block)
wb->network_diff = diff_from_nbits(wb->headerbin + 72);
len = strlen(ckp->logdir) + 8 + 1 + 16 + 1;
wb->logdir = ckalloc(len);
wb->logdir = ckzalloc(len);
/* In proxy mode, the wb->id is received in the notify update and
* we set workbase_id from it. In server mode the stratifier is

Loading…
Cancel
Save