diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2009-07-17 12:36:22 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2009-07-17 12:36:22 +0000 |
commit | 768336a886e32da232b40b674a00ed5b82efd634 (patch) | |
tree | 092b57c0403d20311d9015a37df2ba237648f06b /sys/nfs | |
parent | 77161d1e0ddedb6e70673c483438ab00c4053efa (diff) |
Initialize a variable that was previously using a mystery value in
some error cases
ok thib@
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_serv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index 0e74b5b9b97..a4fc8cbbfd0 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_serv.c,v 1.75 2009/06/06 23:40:30 blambert Exp $ */ +/* $OpenBSD: nfs_serv.c,v 1.76 2009/07/17 12:36:21 blambert Exp $ */ /* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */ /* @@ -522,7 +522,7 @@ nfsrv_read(nfsd, slp, procp, mrq) u_int32_t *tl; int32_t t1; int i; - int error = 0, rdonly, cnt, len, left, siz, tlen, getret; + int error = 0, rdonly, cnt, len, left, siz, tlen, getret = 1; int v3 = (nfsd->nd_flag & ND_NFSV3), reqlen; char *cp2; struct mbuf *mb, *mreq; |