From 40176daf3d3092c8563fb1878c0707ac08a702ae Mon Sep 17 00:00:00 2001 From: Charles Longeau Date: Sat, 13 Sep 2008 12:33:53 +0000 Subject: fix potential use of uninitialized value Found by LLVM/Clang Static Analyzer. "Right." miod@ --- sys/uvm/uvm_swap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/uvm/uvm_swap.c b/sys/uvm/uvm_swap.c index 1388975190c..113889ed1f8 100644 --- a/sys/uvm/uvm_swap.c +++ b/sys/uvm/uvm_swap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_swap.c,v 1.82 2008/06/12 06:58:40 deraadt Exp $ */ +/* $OpenBSD: uvm_swap.c,v 1.83 2008/09/13 12:33:52 chl Exp $ */ /* $NetBSD: uvm_swap.c,v 1.40 2000/11/17 11:39:39 mrg Exp $ */ /* @@ -1112,7 +1112,7 @@ swap_off(p, sdp) struct proc *p; struct swapdev *sdp; { - int error; + int error = 0; UVMHIST_FUNC("swap_off"); UVMHIST_CALLED(pdhist); UVMHIST_LOG(pdhist, " dev=%lx", sdp->swd_dev,0,0,0); -- cgit v1.2.3