1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

clang: add explicit test for VG

Clang can't figure out connection to 'skip' variable.
This commit is contained in:
Zdenek Kabelac 2021-09-18 23:16:30 +02:00
parent 48163e32f1
commit 0d9f3dbd95

View File

@ -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)