main - cov: add explicit check for vg existence
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=a4eb378fe41218793f4c7e97b0d82d33643b5a67 Commit: a4eb378fe41218793f4c7e97b0d82d33643b5a67 Parent: f4b49dae1eb982e36e748fa8e1fc2af59025c9c7 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Jul 27 17:03:38 2021 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Jul 28 00:49:28 2021 +0200
cov: add explicit check for vg existence
Since we check !vg - add check before accessing ->status.
--- lib/format_text/format-text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/format_text/format-text.c +1 -1
@@ -454,7 +454,7 @@ static struct volume_group *_vg_read_raw_area(struct cmd_context *cmd, (unsigned long long )rlocn->size, vgname); -if (precommitted) +if (vg && precommitted) vg->status |=PRECOMMITTED ; out: