diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-18 23:16:30 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-20 10:51:30 +0200 |
commit | 0d9f3dbd954b04e08a27154376b60fe9aca23b0c (patch) | |
tree | ad537eb08f67fc05af7d2c067c83c62871daf726 /tools/toollib.c | |
parent | 48163e32f100a9567cb28ab89f70488d0a0abc7f (diff) | |
download | lvm2-0d9f3dbd954b04e08a27154376b60fe9aca23b0c.tar.gz |
clang: add explicit test for VG
Clang can't figure out connection to 'skip' variable.
Diffstat (limited to 'tools/toollib.c')
-rw-r--r-- | tools/toollib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/toollib.c b/tools/toollib.c index 562cad06a..fa3b2ffe3 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -4349,7 +4349,7 @@ static int _process_pvs_in_vgs(struct cmd_context *cmd, uint32_t read_flags, if (ret > ret_max) ret_max = ret; - if (!skip) + if (!skip && vg) unlock_vg(cmd, vg, vg->name); endvg: if (error_vg) |