diff --git a/src/df.c b/src/df.c
index 61964f3c8bfac13b7d395cfbc80061a91f2fca5f..cb0ff2ffe2ba5bfcefb046c0502021b27f4411c6 100644 (file)
--- a/src/df.c
+++ b/src/df.c
}
/* inode handling */
- if (report_inodes)
+ if (report_inodes && statbuf.f_files != 0 && statbuf.f_ffree != 0)
{
uint64_t inode_free;
uint64_t inode_reserved;