diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 781a478b1..da4af3697 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -449,7 +449,7 @@ static int _ignore_blocked_mirror_devices(struct cmd_context *cmd, struct dm_task *dmt = NULL; int r = 0; char fake_dev_name[16]; - struct device fake_dev = { 0 }; + struct device fake_dev = { .fd = 0 }; struct dm_str_list *alias; if (!(mem = dm_pool_create("blocked_mirrors", 128))) diff --git a/lib/config/config.c b/lib/config/config.c index 7ec25708c..d7fa7d910 100644 --- a/lib/config/config.c +++ b/lib/config/config.c @@ -595,7 +595,7 @@ int config_file_read_from_file(struct dm_config_tree *cft) struct config_source *cs = dm_config_get_custom(cft); struct config_file *cf; struct stat info; - struct device fake_dev = { 0 }; + struct device fake_dev = { .fd = 0 }; struct dm_str_list *alias; int fd; int r; diff --git a/tools/lvchange.c b/tools/lvchange.c index 783bb0b1e..137f1a238 100644 --- a/tools/lvchange.c +++ b/tools/lvchange.c @@ -814,7 +814,7 @@ static int _lvchange_integrity(struct cmd_context *cmd, struct logical_volume *lv, uint32_t *mr) { - struct integrity_settings settings = { 0 }; + struct integrity_settings settings = { .block_size = 0 }; struct logical_volume *lv_image; struct lv_segment *seg, *seg_image; uint32_t s;