From b97132dde3956989fac27d72ebba3c9041086900 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 21 Jan 2015 01:52:47 +1100 Subject: [PATCH] Zero wb->logdir even if we don't write to the share log since we still use the value of it --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index 1c2d673f..c66cad82 100644 --- a/src/stratifier.c +++ b/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