diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-04-22 12:32:35 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-04-23 23:00:55 +0200 |
commit | ece80cd0fbce92d2ce248913fceffbf15e9d37f0 (patch) | |
tree | eec2e1855ad7c293debcc14a577b940bdd4766c8 | |
parent | bf461b99c6d26e550835b77eaffe2204cbc9bed3 (diff) | |
download | lvm2-ece80cd0fbce92d2ce248913fceffbf15e9d37f0.tar.gz |
cov: avoid passed invalid dummy structure
Altough this dummy structure should not be using pe_size anywhere,
make analyzer happier and avoid PV structures with zero pe_size.
-rw-r--r-- | tools/toollib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/toollib.c b/tools/toollib.c index 5ce2ff346..8f9ea1e6b 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -4000,6 +4000,7 @@ static int _process_duplicate_pvs(struct cmd_context *cmd, int ret = 0; struct physical_volume dummy_pv = { + .pe_size = 1, .tags = DM_LIST_HEAD_INIT(dummy_pv.tags), .segments= DM_LIST_HEAD_INIT(dummy_pv.segments), }; |