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))
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user