From dabfab0e717422ac38daf929b27ff33c11a2365e Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 3 Oct 2022 15:20:46 +0200 Subject: [PATCH] libmount: initialize tb in is_mounted_same_loopfile() Signed-off-by: Karel Zak --- libmount/src/hook_loopdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmount/src/hook_loopdev.c b/libmount/src/hook_loopdev.c index 22379cf72d..8c8f7f2187 100644 --- a/libmount/src/hook_loopdev.c +++ b/libmount/src/hook_loopdev.c @@ -59,7 +59,7 @@ is_mounted_same_loopfile(struct libmnt_context *cxt, const char *backing_file, uint64_t offset) { - struct libmnt_table *tb; + struct libmnt_table *tb = NULL; struct libmnt_iter itr; struct libmnt_fs *fs; struct libmnt_cache *cache; -- 2.47.3