summaryrefslogtreecommitdiffstats
path: root/lib/mirror
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/mirror
parent09c4fd3f55b900932caf3dc85a2ecfddca6cebb6 (diff)
downloadlvm2-58bdd1654bdcc817a74251a2179e1a5f791c8c47.tar.gz
lvm2-58bdd1654bdcc817a74251a2179e1a5f791c8c47.tar.xz
lvm2-58bdd1654bdcc817a74251a2179e1a5f791c8c47.zip
Replace malloc with zalloc when creating segment_type's
Diffstat (limited to 'lib/mirror')
-rw-r--r--lib/mirror/mirrored.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c
index 9da8efaa..3c68adab 100644
--- a/lib/mirror/mirrored.c
+++ b/lib/mirror/mirrored.c
@@ -630,7 +630,7 @@ struct segment_type *init_segtype(struct cmd_context *cmd);
struct segment_type *init_segtype(struct cmd_context *cmd)
#endif
{
- struct segment_type *segtype = dm_malloc(sizeof(*segtype));
+ struct segment_type *segtype = dm_zalloc(sizeof(*segtype));
if (!segtype)
return_NULL;