summaryrefslogtreecommitdiffstats
path: root/lib/mirror/mirrored.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mirror/mirrored.c')
-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;