1
0
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:
Zdenek Kabelac 2024-06-13 23:05:46 +02:00
parent f8907b8f3c
commit a98beb8ee3

View File

@ -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;
}