fix: unintialised map.img

This commit is contained in:
Camille Chauvet 2023-05-05 12:08:45 +00:00
parent bef4863660
commit 1b53e19210

View File

@ -57,7 +57,7 @@ t_map *map_parsing(const char *path)
if (parsing_meta(path)) if (parsing_meta(path))
return (NULL); return (NULL);
map = malloc(sizeof(t_map)); map = ft_calloc(1, sizeof(t_map));
if (map == NULL) if (map == NULL)
return (NULL); return (NULL);
file_content = read_map(path); file_content = read_map(path);