fix possible use of uninitialized memory

This commit is contained in:
Sears Russell 2011-04-20 18:00:34 +00:00
parent ad2b6a62ae
commit 43c0d7ac09

View file

@ -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);