summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-08-14 11:06:36 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-08-14 11:06:36 +0000
commitc3974314045d1c755c84a03b37365adedaffe4e3 (patch)
treec7c3b0f25783808f58e97a5d9313cb2a99f30fc6 /sys
parent3391593816e80bceea59ad2d7ec2ca5992bbe3a7 (diff)
Initialize len variable; found by Martynas Venckus
ok thib@
Diffstat (limited to 'sys')
-rw-r--r--sys/nfs/nfs_serv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 4072fa001d6..64f80e312a6 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_serv.c,v 1.85 2009/08/13 15:03:19 blambert Exp $ */
+/* $OpenBSD: nfs_serv.c,v 1.86 2009/08/14 11:06:35 blambert Exp $ */
/* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */
/*
@@ -441,7 +441,7 @@ nfsrv_readlink(nfsd, slp, procp, mrq)
struct nfsm_info info;
u_int32_t *tl;
int32_t t1;
- int error = 0, rdonly, tlen, len, getret;
+ int error = 0, rdonly, tlen, len = 0, getret;
char *cp2;
struct vnode *vp;
struct vattr attr;