Fix wrong order of arguments in memset()
CID 4119.
This commit is contained in:
@@ -430,7 +430,7 @@ create_pool(int block_size, int alignment, int next_ofs,
|
|||||||
if (pool == NULL)
|
if (pool == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
memset(pool, sizeof(*pool), 0);
|
memset(pool, 0, sizeof(*pool));
|
||||||
|
|
||||||
mutex_init(&pool->mutex, "locked_pool");
|
mutex_init(&pool->mutex, "locked_pool");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user