1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cleanup: gcc warns removal

Ensure vars have always defined value.
This commit is contained in:
Zdenek Kabelac 2016-07-11 22:58:21 +02:00
parent 42e76a1920
commit fd53d86eea
2 changed files with 2 additions and 2 deletions

2
lib/cache/lvmetad.c vendored
View File

@ -1784,7 +1784,7 @@ static struct volume_group *lvmetad_pvscan_vg(struct cmd_context *cmd, struct vo
struct dm_list pvs_scan;
struct dm_list pvs_drop;
struct dm_list pvs_new;
struct lvmcache_info *info;
struct lvmcache_info *info = NULL;
struct format_instance *fid;
struct format_instance_ctx fic = { .type = 0 };
struct _lvmetad_pvscan_baton baton;

View File

@ -1726,7 +1726,7 @@ static int _raid0_to_striped_retrieve_segments_and_lvs(struct logical_volume *lv
struct dm_list *removal_lvs)
{
uint32_t s, area_le, area_len, le;
struct lv_segment *data_seg, *seg, *seg_to;
struct lv_segment *data_seg = NULL, *seg, *seg_to;
struct dm_list new_segments;
seg = first_seg(lv);