fix possible use of uninitialized memory
This commit is contained in:
parent
ad2b6a62ae
commit
43c0d7ac09
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ static int update_views_for_page(stasis_allocation_policy_t *ap, pageid_t pageid
|
|||
int ret = 0;
|
||||
int * allocXids;
|
||||
int * deallocXids;
|
||||
size_t freespace;
|
||||
size_t freespace = 0;
|
||||
int inAllPages = allPages_lookup_by_pageid(ap, pageid, &freespace);
|
||||
if(!inAllPages) {
|
||||
stasis_allocation_policy_register_new_page(ap, pageid, 0);
|
||||
|
|
Loading…
Reference in a new issue