All of lore.kernel.org
 help / color / mirror / Atom feed
* main - cov: avoid passed invalid dummy structure
@ 2021-04-23 21:05 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2021-04-23 21:05 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=ece80cd0fbce92d2ce248913fceffbf15e9d37f0
Commit:        ece80cd0fbce92d2ce248913fceffbf15e9d37f0
Parent:        bf461b99c6d26e550835b77eaffe2204cbc9bed3
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Thu Apr 22 12:32:35 2021 +0200
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Fri Apr 23 23:00:55 2021 +0200

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.
---
 tools/toollib.c | 1 +
 1 file changed, 1 insertion(+)

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),
 	};



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-23 21:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-23 21:05 main - cov: avoid passed invalid dummy structure Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.