summaryrefslogtreecommitdiff
path: root/lib/error
diff options
context:
space:
mode:
authorJonathan Earl Brassow <jbrassow@redhat.com>2011-03-25 21:59:42 +0000
committerJonathan Earl Brassow <jbrassow@redhat.com>2011-03-25 21:59:42 +0000
commit58bdd1654bdcc817a74251a2179e1a5f791c8c47 (patch)
tree82285b6504dddd948223b8dbc1f77b7e4c96891c /lib/error
parent09c4fd3f55b900932caf3dc85a2ecfddca6cebb6 (diff)
downloadlvm2-58bdd1654bdcc817a74251a2179e1a5f791c8c47.tar.gz
Replace malloc with zalloc when creating segment_type's
Diffstat (limited to 'lib/error')
-rw-r--r--lib/error/errseg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/error/errseg.c b/lib/error/errseg.c
index add1df8cb..41e451b9c 100644
--- a/lib/error/errseg.c
+++ b/lib/error/errseg.c
@@ -99,7 +99,7 @@ static struct segtype_handler _error_ops = {
struct segment_type *init_error_segtype(struct cmd_context *cmd)
{
- struct segment_type *segtype = dm_malloc(sizeof(*segtype));
+ struct segment_type *segtype = dm_zalloc(sizeof(*segtype));
if (!segtype)
return_NULL;