1
0
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:
Milan Broz 2009-05-07 12:01:21 +00:00
parent 14f5aa2753
commit 610646095b

View File

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