Date: Thu, 21 Mar 2013 12:59:24 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r248581 - head/sys/fs/nfsclient Message-ID: <201303211259.r2LCxOtq076522@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Thu Mar 21 12:59:24 2013 New Revision: 248581 URL: http://svnweb.freebsd.org/changeset/base/248581 Log: 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 Modified: head/sys/fs/nfsclient/nfs_clport.c Modified: head/sys/fs/nfsclient/nfs_clport.c ============================================================================== --- head/sys/fs/nfsclient/nfs_clport.c Thu Mar 21 12:42:25 2013 (r248580) +++ head/sys/fs/nfsclient/nfs_clport.c Thu Mar 21 12:59:24 2013 (r248581) @@ -421,6 +421,7 @@ nfscl_loadattrcache(struct vnode **vpp, 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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303211259.r2LCxOtq076522>