From a02e6e92456112c0d298c0bed69220cc19d5f0dc Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Mon, 3 Feb 2020 18:56:05 +0100 Subject: vim style --- src/ft_get_map.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ft_get_map.c') 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) { -- cgit v1.2.3