findmnt: fix compiler warnings [-Wuninitialized]

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@suse.cz>
This commit is contained in:
Petr Uzel 2012-04-24 10:21:01 +02:00 committed by Karel Zak
parent 077fdcdb2a
commit 6901f22ce0
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,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)