]> sourceware.org Git - lvm2.git/commitdiff
gcc: initialize variables 977422369
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 23 Aug 2023 12:43:07 +0000 (14:43 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 23 Aug 2023 13:10:40 +0000 (15:10 +0200)
lib/device/device_id.c
tools/lvconvert.c

index d5b2555a7047c5aa53a2ad4f7376a07f2fd05c74..bcc703e35d7849fccab0f59594edfbe570009a32 100644 (file)
@@ -2286,7 +2286,7 @@ void device_ids_validate(struct cmd_context *cmd, struct dm_list *scanned_devs,
                         int *device_ids_invalid, int noupdate)
 {
        struct dm_list wrong_devs;
-       struct device *dev;
+       struct device *dev = NULL;
        struct device_list *devl;
        struct dev_use *du, *du2;
        struct dev_id *id;
index 6ed4acf656c595cfdae6fa049600cec778fbb2e6..9471f2516802354be6e57172f8afe69af8d5f441 100644 (file)
@@ -3069,7 +3069,7 @@ static int _lvconvert_to_pool(struct cmd_context *cmd,
        struct volume_group *vg = lv->vg;
        struct logical_volume *metadata_lv = NULL;  /* existing or created */
        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 */
        char converted_names[3*NAME_LEN];           /* preserve names of converted lv */
        struct segment_type *pool_segtype;          /* thinpool or cachepool */
This page took 0.040699 seconds and 5 git commands to generate.