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 /libdm/libdm-report.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 'libdm/libdm-report.c')
-rw-r--r-- | libdm/libdm-report.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 2b044b53..7631e219 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -571,11 +571,10 @@ struct dm_report *dm_report_init(uint32_t *report_types, struct dm_report *rh; const struct dm_report_object_type *type; - if (!(rh = dm_malloc(sizeof(*rh)))) { + if (!(rh = dm_zalloc(sizeof(*rh)))) { log_error("dm_report_init: dm_malloc failed"); return 0; } - memset(rh, 0, sizeof(*rh)); /* * rh->report_types is updated in _parse_fields() and _parse_keys() |