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:
parent
1a5c79d1d1
commit
dd5f8b3f8c
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user