diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_get_map.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_get_map.c b/src/ft_get_map.c index b64da72..a0ddfbb 100644 --- a/src/ft_get_map.c +++ b/src/ft_get_map.c @@ -82,10 +82,9 @@ int i = 1; ret = 1; - while (ret > 0) + while ((ret = get_next_line(fd, &line)) > 0) { clist->line_chk += 1; - ret = get_next_line(fd, &line); if (!line[0] || ft_check_map_line(line, 0, clist) < 0 || ft_cat_mapl(line, i, clist) < 0) { |