From 316a25e64c18596a95294413d2cd5a58e0bded27 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 10 Jan 2016 13:43:53 +1100 Subject: [PATCH] Uninitialised variable was leading to reloading of stats --- src/stratifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 659ffee3..9982ebae 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -4044,7 +4044,7 @@ static user_instance_t *get_create_user(ckpool_t *ckp, sdata_t *sdata, const cha static user_instance_t *get_user(sdata_t *sdata, const char *username) { - bool dummy; + bool dummy = false; return get_create_user(sdata->ckp, sdata, username, &dummy); } @@ -4096,7 +4096,7 @@ static worker_instance_t *get_create_worker(ckpool_t *ckp, sdata_t *sdata, user_ static worker_instance_t *get_worker(sdata_t *sdata, user_instance_t *user, const char *workername) { - bool dummy; + bool dummy = false; return get_create_worker(sdata->ckp, sdata, user, workername, &dummy); }