summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_swap.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-09-13 12:33:53 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-09-13 12:33:53 +0000
commit40176daf3d3092c8563fb1878c0707ac08a702ae (patch)
treee7734a1d8f1e010fb24a67c35d3079ddf05d7937 /sys/uvm/uvm_swap.c
parent34c5d18ff489821d7b917fcdf03b4c6494724233 (diff)
fix potential use of uninitialized value
Found by LLVM/Clang Static Analyzer. "Right." miod@
Diffstat (limited to 'sys/uvm/uvm_swap.c')
-rw-r--r--sys/uvm/uvm_swap.c4
1 files changed, 2 insertions, 2 deletions
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);