From 58bdd1654bdcc817a74251a2179e1a5f791c8c47 Mon Sep 17 00:00:00 2001 From: Jonathan Earl Brassow Date: Fri, 25 Mar 2011 21:59:42 +0000 Subject: Replace malloc with zalloc when creating segment_type's --- lib/mirror/mirrored.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mirror') 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; -- cgit