1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-01 01:14:22 +00:00

Fixed missing realloc removed by mistake.

Conflicts (resolved):
	sgminer.c
This commit is contained in:
troky 2014-01-28 22:26:01 +01:00 committed by Noel Maersk
parent b97a641ed9
commit e0c380a2c9

View File

@ -518,7 +518,7 @@ struct pool *add_pool(void)
sprintf(buf, "Pool %d", pool->pool_no);
pool->poolname = strdup(buf);
pools = realloc(pools, sizeof(struct pool *) * (total_pools + 2));
pools = (struct pool **)realloc(pools, sizeof(struct pool *) * (total_pools + 2));
pools[total_pools++] = pool;
mutex_init(&pool->pool_lock);
if (unlikely(pthread_cond_init(&pool->cr_cond, NULL)))