mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Use zalloc in initialization of device manager (to zero pvmove mirror count).
This commit is contained in:
parent
14f5aa2753
commit
610646095b
@ -445,7 +445,7 @@ struct dev_manager *dev_manager_create(struct cmd_context *cmd,
|
||||
if (!(mem = dm_pool_create("dev_manager", 16 * 1024)))
|
||||
return_NULL;
|
||||
|
||||
if (!(dm = dm_pool_alloc(mem, sizeof(*dm))))
|
||||
if (!(dm = dm_pool_zalloc(mem, sizeof(*dm))))
|
||||
goto_bad;
|
||||
|
||||
dm->cmd = cmd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user