diff options
author | Alasdair Kergon <agk@redhat.com> | 2010-09-30 21:06:50 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2010-09-30 21:06:50 +0000 |
commit | ac0252ca07e3be5bbb439c913d71c43f551e30ce (patch) | |
tree | 45d08af849560161cd6570fa0ff123cc770f1a70 /lib/label/label.c | |
parent | 0ca1492ca52365cc86aeaf623e370290446ba16f (diff) | |
download | lvm2-ac0252ca07e3be5bbb439c913d71c43f551e30ce.tar.gz lvm2-ac0252ca07e3be5bbb439c913d71c43f551e30ce.tar.xz lvm2-ac0252ca07e3be5bbb439c913d71c43f551e30ce.zip |
Add dm_zalloc and use it and dm_pool_zalloc throughout.
Diffstat (limited to 'lib/label/label.c')
-rw-r--r-- | lib/label/label.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/label/label.c b/lib/label/label.c index 9a10d066..c622812f 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -383,11 +383,10 @@ struct label *label_create(struct labeller *labeller) { struct label *label; - if (!(label = dm_malloc(sizeof(*label)))) { + if (!(label = dm_zalloc(sizeof(*label)))) { log_error("label allocaction failed"); return NULL; } - memset(label, 0, sizeof(*label)); label->labeller = labeller; |