diff options
author | kib <kib@FreeBSD.org> | 2013-03-21 12:59:24 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-03-21 12:59:24 +0000 |
commit | 7225171d6609a85a395dfeba1afae16cbb50ba18 (patch) | |
tree | c561029bcc238641323119b395938a57618212d0 /sys/fs | |
parent | a43818500fd260bc14f2a35e9652f5060ab05794 (diff) | |
download | FreeBSD-src-7225171d6609a85a395dfeba1afae16cbb50ba18.zip FreeBSD-src-7225171d6609a85a395dfeba1afae16cbb50ba18.tar.gz |
Initialize the variable to avoid (false) compiler warning about
use of an uninitialized local.
Reported by: Ivan Klymenko <fidaj@ukr.net>
MFC after: 2 weeks
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/nfsclient/nfs_clport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c index 4fe2e35..45acc75 100644 --- a/sys/fs/nfsclient/nfs_clport.c +++ b/sys/fs/nfsclient/nfs_clport.c @@ -421,6 +421,7 @@ nfscl_loadattrcache(struct vnode **vpp, struct nfsvattr *nap, void *nvaper, vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0]; np->n_attrstamp = time_second; setnsize = 0; + nsize = 0; if (vap->va_size != np->n_size) { if (vap->va_type == VREG) { if (dontshrink && vap->va_size < np->n_size) { |