diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-05-12 19:10:14 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-05-12 19:10:14 +0200 |
| commit | 966eb29634a84496e0851ef2b5a7d64f413d33ed (patch) | |
| tree | 40853771e98ef6c51ad82e2f8e740e88654c69e1 /src/io/ft_getline.c | |
| parent | b9f000a80cbba38b8f21c9737a42f07573ec7b91 (diff) | |
| download | libft-966eb29634a84496e0851ef2b5a7d64f413d33ed.tar.gz libft-966eb29634a84496e0851ef2b5a7d64f413d33ed.tar.bz2 libft-966eb29634a84496e0851ef2b5a7d64f413d33ed.zip | |
Added ft_veciter_ret
Diffstat (limited to 'src/io/ft_getline.c')
| -rw-r--r-- | src/io/ft_getline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io/ft_getline.c b/src/io/ft_getline.c index 4cf3962..d59aa63 100644 --- a/src/io/ft_getline.c +++ b/src/io/ft_getline.c @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/31 10:39:38 by cacharle #+# #+# */ -/* Updated: 2020/05/09 11:19:12 by charles ### ########.fr */ +/* Updated: 2020/05/12 17:56:59 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -88,7 +88,7 @@ int ft_getline(int fd, char **line) int split_at; static char rest[OPEN_MAX][FT_GETLINE_BUFFER_SIZE + 1] = {{0}}; - if (fd < 0 || fd > OPEN_MAX || line == NULL || FT_GETLINE_BUFFER_SIZE <= 0) + if (fd < 0 || fd > OPEN_MAX || line == NULL) return (FT_ERROR); if ((*line = ft_strdup("")) == NULL) return (FT_ERROR); |
