make sure variables are initialized
authorChristos Zoulas <christos@zoulas.com>
Thu, 22 Jan 2015 04:28:33 +0000 (23:28 -0500)
committerChristos Zoulas <christos@zoulas.com>
Thu, 22 Jan 2015 04:28:33 +0000 (23:28 -0500)
amd/nfs_subr.c

index 7192a6af7d3e9093e6938a76b9174ffb7d2a5b79..30effba578d302c1a88fb5d60686d2ec7e585a78 100644 (file)
@@ -1711,6 +1711,9 @@ am_nfs3_fsstat_3_svc(am_FSSTAT3args *argp, struct svc_req *rqstp)
     if ((gopt.flags & CFM_SHOW_STATFS_ENTRIES) &&
        mp->am_al->al_mnt && mp->am_al->al_mnt->mf_mopts) {
       mnt.mnt_opts = mp->am_al->al_mnt->mf_mopts;
+      blocks = 0;
+      bfree = 0;
+      bavail = 0;
       if (amu_hasmntopt(&mnt, "browsable")) {
        count_map_entries(mp, &blocks, &bfree, &bavail);
       }