1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cov: ensure segtype is not null

This commit is contained in:
Zdenek Kabelac 2021-04-22 15:11:08 +02:00
parent cdcd8011d0
commit 04fd55a0c9

View File

@ -1373,7 +1373,8 @@ static int _lvconvert_raid(struct logical_volume *lv, struct lvconvert_params *l
if (!*lp->type_str) {
lp->type_str = SEG_TYPE_NAME_RAID1;
lp->segtype = get_segtype_from_string(lv->vg->cmd, SEG_TYPE_NAME_RAID1);
if (!(lp->segtype = get_segtype_from_string(lv->vg->cmd, SEG_TYPE_NAME_RAID1)))
return_0;
type_enforced = 1;
}
}