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:
parent
b97a641ed9
commit
e0c380a2c9
@ -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)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user