diff options
| author | Dominik Kaiser | 2024-03-26 10:50:48 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2024-03-26 10:50:48 +0100 |
| commit | cef09ac068d69cb2621ade938c6164aa6b1815c7 (patch) | |
| tree | 1cb23cff95e5e9d1e6893938aa38e34fe35a1459 /get_next_line.c | |
| parent | 1a0bce1446dda5bd8338d18bc842566905fac30b (diff) | |
| download | get_next_line-cef09ac068d69cb2621ade938c6164aa6b1815c7.tar.gz get_next_line-cef09ac068d69cb2621ade938c6164aa6b1815c7.zip | |
Diffstat (limited to 'get_next_line.c')
| -rw-r--r-- | get_next_line.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/get_next_line.c b/get_next_line.c index e34210d..46edb73 100644 --- a/get_next_line.c +++ b/get_next_line.c @@ -6,7 +6,7 @@ /* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/15 14:13:51 by dkaiser #+# #+# */ -/* Updated: 2024/03/25 14:21:58 by dkaiser ### ########.fr */ +/* Updated: 2024/03/25 15:26:21 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -52,9 +52,8 @@ static void get_next_line_rec(int fd, char *buf, char **result, int pos) clear_buffer(buf, 0); free(*result); *result = NULL; - return ; } - if (readlen > 0) + else if (readlen > 0) get_next_line_rec(fd, buf, result, 0); } } |
