From 47ca76eb98d578cc78a6315a5f98504a8241cfec Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 3 Nov 2019 23:38:32 +0100 Subject: changed rest bufs back to not malloc'd, empty line on EOF --- get_next_line_utils.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'get_next_line_utils.c') diff --git a/get_next_line_utils.c b/get_next_line_utils.c index 096fb84..637842c 100644 --- a/get_next_line_utils.c +++ b/get_next_line_utils.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/08 08:52:59 by cacharle #+# #+# */ -/* Updated: 2019/11/03 00:26:34 by cacharle ### ########.fr */ +/* Updated: 2019/11/03 22:57:39 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -18,8 +18,6 @@ char *ft_strappend(char *dest, char *src) void *copy; int dest_len; - if (dest == NULL) - return (ft_strdup(src)); dest_len = ft_strlen(dest); if ((copy = (char*)malloc(sizeof(char) * (dest_len + 1))) == NULL) return (NULL); -- cgit