svn commit: r194814 - head/sys/vm

Konstantin Belousov kib at FreeBSD.org
Wed Jun 24 09:26:34 UTC 2009


Author: kib
Date: Wed Jun 24 09:26:33 2009
New Revision: 194814
URL: http://svn.freebsd.org/changeset/base/194814

Log:
  Initialize the uip to silence gcc warning that seems to sneak in in some
  build environments.
  
  Reported by:	alc, bf1783 at googlemail com

Modified:
  head/sys/vm/swap_pager.c

Modified: head/sys/vm/swap_pager.c
==============================================================================
--- head/sys/vm/swap_pager.c	Wed Jun 24 08:53:23 2009	(r194813)
+++ head/sys/vm/swap_pager.c	Wed Jun 24 09:26:33 2009	(r194814)
@@ -569,6 +569,7 @@ swap_pager_alloc(void *handle, vm_ooffse
 	vm_pindex_t pindex;
 	struct uidinfo *uip;
 
+	uip = NULL;
 	pindex = OFF_TO_IDX(offset + PAGE_MASK + size);
 	if (handle) {
 		mtx_lock(&Giant);


More information about the svn-src-all mailing list