Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/am-utils/dist/amd Don't use uninitialised varia...



details:   https://anonhg.NetBSD.org/src/rev/ad1ea18e2b19
branches:  trunk
changeset: 335701:ad1ea18e2b19
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed Jan 21 21:47:44 2015 +0000

description:
Don't use uninitialised variables.

diffstat:

 external/bsd/am-utils/dist/amd/nfs_subr.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 799e7e6b0e5b -r ad1ea18e2b19 external/bsd/am-utils/dist/amd/nfs_subr.c
--- a/external/bsd/am-utils/dist/amd/nfs_subr.c Wed Jan 21 21:25:13 2015 +0000
+++ b/external/bsd/am-utils/dist/amd/nfs_subr.c Wed Jan 21 21:47:44 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nfs_subr.c,v 1.2 2015/01/18 15:54:38 christos Exp $    */
+/*     $NetBSD: nfs_subr.c,v 1.3 2015/01/21 21:47:44 joerg Exp $       */
 
 /*
  * Copyright (c) 1997-2014 Erez Zadok
@@ -1713,6 +1713,9 @@
     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);
       }



Home | Main Index | Thread Index | Old Index