]> sourceware.org Git - lvm2.git/commitdiff
cov: avoid passed invalid dummy structure
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 22 Apr 2021 10:32:35 +0000 (12:32 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 23 Apr 2021 21:00:55 +0000 (23:00 +0200)
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

index 5ce2ff34698bee41f7b9056b467639f559978ffc..8f9ea1e6bd495731188d999b3ab4d08726f1f308 100644 (file)
@@ -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),
        };
This page took 0.045891 seconds and 5 git commands to generate.