mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
gcc: ensure all fmt struct element are initialized
This commit is contained in:
parent
f8907b8f3c
commit
a98beb8ee3
@ -2593,7 +2593,7 @@ struct format_type *create_text_format(struct cmd_context *cmd)
|
||||
struct format_type *fmt;
|
||||
struct mda_lists *mda_lists;
|
||||
|
||||
if (!(fmt = malloc(sizeof(*fmt)))) {
|
||||
if (!(fmt = zalloc(sizeof(*fmt)))) {
|
||||
log_error("Failed to allocate text format type structure.");
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user