From c47f7acdcde21d3445b5ad706545a482f0226e66 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sun, 19 Jan 2020 22:16:15 -0800 Subject: [PATCH] Don't need calloc --- src/map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.c b/src/map.c index e809cce..ab93904 100644 --- a/src/map.c +++ b/src/map.c @@ -30,14 +30,14 @@ static gint compare(gconstpointer p1, gconstpointer p2, gpointer data) { } struct map* map_init(void) { - struct map* map = calloc(1, sizeof(struct map)); + struct map* map = malloc(sizeof(struct map)); map->tree = g_tree_new_full(compare, NULL, free, free); map->mman = true; return map; } struct map* map_init_void(void) { - struct map* map = calloc(1, sizeof(struct map)); + struct map* map = malloc(sizeof(struct map)); map->tree = g_tree_new_full(compare, NULL, free, NULL); map->mman = false; return map;