summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_vnops.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2010-03-29 23:33:40 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2010-03-29 23:33:40 +0000
commita65580ffe4015aa3ff33845af072cc6d8449328c (patch)
tree440f567bdbe079c50caba2104223eaf9e8911e3b /sys/nfs/nfs_vnops.c
parent0181b3616d9227302ce4911ebb960a51c11b31ae (diff)
Initialize various uninitialized variables. Found by jsg@ via Clang.
Feedback from miod@ and kettenis@. ok beck@
Diffstat (limited to 'sys/nfs/nfs_vnops.c')
-rw-r--r--sys/nfs/nfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c
index 0b9fada31f5..5f0fbf3d0b6 100644
--- a/sys/nfs/nfs_vnops.c
+++ b/sys/nfs/nfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vnops.c,v 1.127 2009/12/15 15:53:48 beck Exp $ */
+/* $OpenBSD: nfs_vnops.c,v 1.128 2010/03/29 23:33:39 krw Exp $ */
/* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */
/*
@@ -1927,7 +1927,7 @@ nfs_readdir(void *v)
struct vnode *vp = ap->a_vp;
struct nfsnode *np = VTONFS(vp);
struct uio *uio = ap->a_uio;
- int tresid, error;
+ int tresid, error = 0;
struct vattr vattr;
u_long *cookies = NULL;
int ncookies = 0, cnt;