]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: fix compiler warnings [-Wuninitialized -Wformat]
authorKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2012 15:33:19 +0000 (16:33 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2012 15:33:19 +0000 (16:33 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_loopdev.c
libmount/src/tab.c

index a379587090db486a5c6da93d77646b906c5d0185..023c9529be6a69dcedef1413e233d4a5e66a14fd 100644 (file)
@@ -90,7 +90,7 @@ static int is_mounted_same_loopfile(struct libmnt_context *cxt,
        if (!target || !backing_file || mnt_context_get_mtab(cxt, &tb))
                return 0;
 
-       DBG(CXT, mnt_debug_h(cxt, "checking if %s mounted on %d",
+       DBG(CXT, mnt_debug_h(cxt, "checking if %s mounted on %s",
                                backing_file, target));
 
        cache = mnt_context_get_cache(cxt);
index da80a1586157ff5821b7bcb8d8bb5b826b510876..37f47bd6a85c6ebe16c5604f94199af461f9e636 100644 (file)
@@ -831,7 +831,7 @@ int mnt_table_is_fs_mounted(struct libmnt_table *tb, struct libmnt_fs *fstab_fs)
        char *root = NULL;
        struct libmnt_fs *src_fs;
        const char *src, *tgt;
-       char *xsrc;
+       char *xsrc = NULL;
        int flags = 0, rc = 0;
 
        assert(tb);