diff --git a/map/parsing.c b/map/parsing.c index 0630f88..5d5b889 100644 --- a/map/parsing.c +++ b/map/parsing.c @@ -57,7 +57,7 @@ t_map *map_parsing(const char *path) if (parsing_meta(path)) return (NULL); - map = malloc(sizeof(t_map)); + map = ft_calloc(1, sizeof(t_map)); if (map == NULL) return (NULL); file_content = read_map(path);