diff options
| author | Karel Zak <kzak@redhat.com> | 2022-10-03 15:20:46 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2023-01-03 12:58:42 +0100 |
| commit | dabfab0e717422ac38daf929b27ff33c11a2365e (patch) | |
| tree | a5d04a6ffad89ea8393e037ff3895fb953da4131 /libmount/src/hook_loopdev.c | |
| parent | 602c1c5645afd2cc14701e5f22c9448678d62e6e (diff) | |
| download | util-linux-dabfab0e717422ac38daf929b27ff33c11a2365e.tar.gz | |
libmount: initialize tb in is_mounted_same_loopfile()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/hook_loopdev.c')
| -rw-r--r-- | libmount/src/hook_loopdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
