Prevent uninitialized value
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
68cadd90f8
commit
531c7856bd
@ -43,7 +43,7 @@ struct _env_allocator_item {
|
|||||||
void *env_allocator_new(env_allocator *allocator)
|
void *env_allocator_new(env_allocator *allocator)
|
||||||
{
|
{
|
||||||
struct _env_allocator_item *item = NULL;
|
struct _env_allocator_item *item = NULL;
|
||||||
int cpu;
|
int cpu = 0;
|
||||||
|
|
||||||
if (allocator->rpool)
|
if (allocator->rpool)
|
||||||
item = cas_rpool_try_get(allocator->rpool, &cpu);
|
item = cas_rpool_try_get(allocator->rpool, &cpu);
|
||||||
|
Loading…
Reference in New Issue
Block a user