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:
parent
6172db5326
commit
4151df32c1
@ -225,7 +225,7 @@ struct dev_filter *regex_filter_create(const struct dm_config_value *patterns, i
|
||||
if (!mem)
|
||||
return_NULL;
|
||||
|
||||
if (!(rf = dm_pool_alloc(mem, sizeof(*rf))))
|
||||
if (!(rf = dm_pool_zalloc(mem, sizeof(*rf))))
|
||||
goto_bad;
|
||||
|
||||
rf->mem = mem;
|
||||
|
Loading…
Reference in New Issue
Block a user