diff options
-rw-r--r-- | bin/df/df.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/df/df.c b/bin/df/df.c index 96767fc27df1..063963ed022d 100644 --- a/bin/df/df.c +++ b/bin/df/df.c @@ -203,11 +203,9 @@ main(int argc, char *argv[]) rv = 0; if (!*argv) { mntsize = regetmntinfo(&mntbuf, mntsize, vfslist); - if (vfslist != NULL) { - bzero(&maxwidths, sizeof(maxwidths)); - for (i = 0; i < mntsize; i++) - update_maxwidths(&maxwidths, &mntbuf[i]); - } + bzero(&maxwidths, sizeof(maxwidths)); + for (i = 0; i < mntsize; i++) + update_maxwidths(&maxwidths, &mntbuf[i]); for (i = 0; i < mntsize; i++) { if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) prtstat(&mntbuf[i], &maxwidths); |