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

filter: zero internal structure

Valgrind noticed access to unitialized warned_filter.
This commit is contained in:
Zdenek Kabelac 2024-03-29 21:27:06 +01:00
parent 6172db5326
commit 4151df32c1

View File

@ -225,7 +225,7 @@ struct dev_filter *regex_filter_create(const struct dm_config_value *patterns, i
if (!mem) if (!mem)
return_NULL; return_NULL;
if (!(rf = dm_pool_alloc(mem, sizeof(*rf)))) if (!(rf = dm_pool_zalloc(mem, sizeof(*rf))))
goto_bad; goto_bad;
rf->mem = mem; rf->mem = mem;