diff options
author | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-03-25 21:59:42 +0000 |
---|---|---|
committer | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-03-25 21:59:42 +0000 |
commit | 58bdd1654bdcc817a74251a2179e1a5f791c8c47 (patch) | |
tree | 82285b6504dddd948223b8dbc1f77b7e4c96891c /lib/freeseg | |
parent | 09c4fd3f55b900932caf3dc85a2ecfddca6cebb6 (diff) | |
download | lvm2-58bdd1654bdcc817a74251a2179e1a5f791c8c47.tar.gz |
Replace malloc with zalloc when creating segment_type's
Diffstat (limited to 'lib/freeseg')
-rw-r--r-- | lib/freeseg/freeseg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/freeseg/freeseg.c b/lib/freeseg/freeseg.c index 8e73be0c6..6fbad7ec7 100644 --- a/lib/freeseg/freeseg.c +++ b/lib/freeseg/freeseg.c @@ -43,7 +43,7 @@ static struct segtype_handler _freeseg_ops = { struct segment_type *init_free_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; |