We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5554a53 commit b01c2d9Copy full SHA for b01c2d9
bonus/ft_map_parse_bonus.c
@@ -41,6 +41,8 @@ int ft_map_parse(t_game *game)
41
if (fd < 0)
42
return (0);
43
line = get_next_line(fd);
44
+ if (!line)
45
+ return (0);
46
while (line)
47
{
48
lines = ft_strjoin(lines, line);
mandatory/ft_map_parse.c
0 commit comments