]> sourceware.org Git - lvm2.git/commitdiff
debug: initialize empty string
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 13 Oct 2023 18:57:02 +0000 (20:57 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 13 Oct 2023 23:04:10 +0000 (01:04 +0200)
tools/lvconvert.c

index dd429b80c4f051b0e6caeab7ae5ca5d7d663f245..e947837d1bf23cbc272ef5e24033fd65432bbece 100644 (file)
@@ -3071,7 +3071,7 @@ static int _lvconvert_to_pool(struct cmd_context *cmd,
        struct logical_volume *data_lv;             /* lv arg renamed */
        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 */
+       char converted_names[3*NAME_LEN] = { 0 };   /* preserve names of converted lv */
        struct segment_type *pool_segtype;          /* thinpool or cachepool */
        const char *str_seg_type = to_cachepool ? SEG_TYPE_NAME_CACHE_POOL : SEG_TYPE_NAME_THIN_POOL;
        struct lv_segment *seg;
This page took 0.036819 seconds and 5 git commands to generate.