mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
gcc: older compiler is happier with this initilizer
This commit is contained in:
parent
a0e40bad1d
commit
f61d828c86
@ -2372,7 +2372,7 @@ static int _add_cvol_subdev_to_dtree(struct dev_manager *dm, struct dm_tree *dtr
|
|||||||
struct lv_segment *lvseg = first_seg(lv);
|
struct lv_segment *lvseg = first_seg(lv);
|
||||||
struct dm_info info;
|
struct dm_info info;
|
||||||
char *name ,*dlid;
|
char *name ,*dlid;
|
||||||
union lvid lvid = { 0 };
|
union lvid lvid = { { { "" } } };
|
||||||
|
|
||||||
memcpy(&lvid.id[0], &lv->vg->id, sizeof(struct id));
|
memcpy(&lvid.id[0], &lv->vg->id, sizeof(struct id));
|
||||||
/* When ID is provided in form of metadata_id or data_id, otherwise use CVOL ID */
|
/* When ID is provided in form of metadata_id or data_id, otherwise use CVOL ID */
|
||||||
|
Loading…
Reference in New Issue
Block a user