mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lib: zero returned labeller struct
Return zeroed struct. (Structure will be extended, so ensure all members are initilized.)
This commit is contained in:
parent
6f68f4364b
commit
4d16bfaabb
@ -465,7 +465,7 @@ struct labeller *text_labeller_create(const struct format_type *fmt)
|
||||
{
|
||||
struct labeller *l;
|
||||
|
||||
if (!(l = dm_malloc(sizeof(*l)))) {
|
||||
if (!(l = dm_zalloc(sizeof(*l)))) {
|
||||
log_error("Couldn't allocate labeller object.");
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user