diff --git a/get_next_line.c b/get_next_line.c index 70323ec..226cb6a 100644 --- a/get_next_line.c +++ b/get_next_line.c @@ -6,7 +6,7 @@ /* By: hulamy +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/12/31 17:05:53 by hulamy #+# #+# */ -/* Updated: 2019/12/31 17:28:00 by hulamy ### ########.fr */ +/* Updated: 2019/12/31 17:37:49 by hulamy ### ########.fr */ /* */ /* ************************************************************************** */ @@ -88,9 +88,7 @@ int multi_fd(int fd, t_gnlist **lst) tmp = *lst; while (*lst && (*lst)->lfd != fd && (*lst)->next != tmp) - { *lst = (*lst)->next; - } if (!tmp || ((*lst)->next == tmp && (*lst)->lfd != fd)) { if (!(tmp = (t_gnlist*)malloc(sizeof(*tmp)))) diff --git a/get_next_line_bonus.c b/get_next_line_bonus.c index 1f52cfb..99a4964 100644 --- a/get_next_line_bonus.c +++ b/get_next_line_bonus.c @@ -6,7 +6,7 @@ /* By: hulamy +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/12/31 17:05:53 by hulamy #+# #+# */ -/* Updated: 2019/12/31 17:25:31 by hulamy ### ########.fr */ +/* Updated: 2019/12/31 17:38:00 by hulamy ### ########.fr */ /* */ /* ************************************************************************** */ @@ -88,9 +88,7 @@ int multi_fd(int fd, t_gnlist **lst) tmp = *lst; while (*lst && (*lst)->lfd != fd && (*lst)->next != tmp) - { *lst = (*lst)->next; - } if (!tmp || ((*lst)->next == tmp && (*lst)->lfd != fd)) { if (!(tmp = (t_gnlist*)malloc(sizeof(*tmp))))