findmnt.c:333:29: error: ‘vfs_attr’ may be used uninitialized in this function [-Werror=uninitialized] findmnt.c:307:11: note: ‘vfs_attr’ was declared here Signed-off-by: Petr Uzel <petr.uzel@xxxxxxx> --- misc-utils/findmnt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/misc-utils/findmnt.c b/misc-utils/findmnt.c index cf69c42..a709824 100644 --- a/misc-utils/findmnt.c +++ b/misc-utils/findmnt.c @@ -304,7 +304,7 @@ static const char *get_tag(struct libmnt_fs *fs, const char *tagname) static const char *get_vfs_attr(struct libmnt_fs *fs, int sizetype) { struct statvfs buf; - uint64_t vfs_attr; + uint64_t vfs_attr = 0; char *sizestr; if (statvfs(mnt_fs_get_target(fs), &buf) != 0) -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html