]> sourceware.org Git - lvm2.git/commitdiff
gcc: older compiler is happier with this initilizer
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 21 Oct 2019 10:24:40 +0000 (12:24 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 21 Oct 2019 13:32:35 +0000 (15:32 +0200)
lib/activate/dev_manager.c

index 9e4dba481d7733c8fd48dc9103fdbf2860077cdf..a2e9039172a05fc8effeb4744a8fdec75cb1b0c8 100644 (file)
@@ -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 */
This page took 0.058112 seconds and 5 git commands to generate.