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:
parent
48163e32f1
commit
0d9f3dbd95
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user