1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

gcc: initialize variables

This commit is contained in:
Zdenek Kabelac 2023-08-23 14:43:07 +02:00
parent 941c4a20d6
commit 71ff21f57c
2 changed files with 2 additions and 2 deletions

View File

@ -2286,7 +2286,7 @@ void device_ids_validate(struct cmd_context *cmd, struct dm_list *scanned_devs,
int *device_ids_invalid, int noupdate) int *device_ids_invalid, int noupdate)
{ {
struct dm_list wrong_devs; struct dm_list wrong_devs;
struct device *dev; struct device *dev = NULL;
struct device_list *devl; struct device_list *devl;
struct dev_use *du, *du2; struct dev_use *du, *du2;
struct dev_id *id; struct dev_id *id;

View File

@ -3069,7 +3069,7 @@ static int _lvconvert_to_pool(struct cmd_context *cmd,
struct volume_group *vg = lv->vg; struct volume_group *vg = lv->vg;
struct logical_volume *metadata_lv = NULL; /* existing or created */ struct logical_volume *metadata_lv = NULL; /* existing or created */
struct logical_volume *data_lv; /* lv arg renamed */ struct logical_volume *data_lv; /* lv arg renamed */
struct logical_volume *pool_lv; /* new lv created here */ struct logical_volume *pool_lv = NULL; /* new lv created here */
const char *pool_metadata_name; /* user-specified lv name */ const char *pool_metadata_name; /* user-specified lv name */
char converted_names[3*NAME_LEN]; /* preserve names of converted lv */ char converted_names[3*NAME_LEN]; /* preserve names of converted lv */
struct segment_type *pool_segtype; /* thinpool or cachepool */ struct segment_type *pool_segtype; /* thinpool or cachepool */