fix: unintialised map.img
This commit is contained in:
parent
bef4863660
commit
1b53e19210
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user