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

clang: keep metaname initialized

Never access uninitialized metaname buffer.
This commit is contained in:
Zdenek Kabelac 2021-09-15 14:07:19 +02:00
parent 1a5c79d1d1
commit dd5f8b3f8c

View File

@ -86,7 +86,7 @@ static int _lv_create_integrity_metadata(struct cmd_context *cmd,
struct lvcreate_params *lp,
struct logical_volume **meta_lv)
{
char metaname[NAME_LEN];
char metaname[NAME_LEN] = { 0 };
uint64_t lv_size_bytes, meta_bytes, meta_sectors;
struct logical_volume *lv;
struct lvcreate_params lp_meta = {