Initialize the uip to silence gcc warning that seems to sneak in in some

build environments.

Reported by:	alc, bf1783 at googlemail com
This commit is contained in:
Konstantin Belousov 2009-06-24 09:26:33 +00:00
parent 5c66449004
commit 7a8af8eee2

View File

@ -569,6 +569,7 @@ swap_pager_alloc(void *handle, vm_ooffset_t size, vm_prot_t prot,
vm_pindex_t pindex;
struct uidinfo *uip;
uip = NULL;
pindex = OFF_TO_IDX(offset + PAGE_MASK + size);
if (handle) {
mtx_lock(&Giant);