Skip to contentSkip to conversation

master - gcc: older compiler is happier with this initilizer

PATCH Zdenek Kabelac 1 participant 1 message Oct 21, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f61d828c86d2b6466224290b9a1ffdaa16419f3d
Commit:        f61d828c86d2b6466224290b9a1ffdaa16419f3d
Parent:        a0e40bad1d7c2a93d0dfd9ad27542673ee5300a5
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Mon Oct 21 12:24:40 2019 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Oct 21 15:32:35 2019 +0200

gcc: older compiler is happier with this initilizer

---
 lib/activate/dev_manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
lib/activate/dev_manager.c +1 -1
index 9e4dba4..a2e9039 100644
@@ -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 dm_info info;
 	char *name ,*dlid;
-	union lvid lvid = { 0 };
+	union lvid lvid = { { { "" } } };
 
 	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 */