From f514e379786689a47518bf67d71a388977cc7369 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Fri, 14 Dec 2018 21:53:34 +0100 Subject: [PATCH] lvconvert: ensure proper init of pv_list --- tools/lvconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 8329bc6ee..c260ee092 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -484,7 +484,7 @@ static struct dm_list *_failed_pv_list(struct volume_group *vg) if (pvl->pv->pe_alloc_count == 0) continue; - if (!(new_pvl = dm_pool_alloc(vg->vgmem, sizeof(*new_pvl)))) { + if (!(new_pvl = dm_pool_zalloc(vg->vgmem, sizeof(*new_pvl)))) { log_error("Allocation of failed_pvs list entry failed."); return NULL; }