Browse Source

Uninitialised variable was leading to reloading of stats

master
Con Kolivas 9 years ago
parent
commit
316a25e64c
  1. 4
      src/stratifier.c

4
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) 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); 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) 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); return get_create_worker(sdata->ckp, sdata, user, workername, &dummy);
} }

Loading…
Cancel
Save