aboutsummaryrefslogtreecommitdiff
path: root/c12/ex03
diff options
context:
space:
mode:
Diffstat (limited to 'c12/ex03')
-rw-r--r--c12/ex03/ft_list_last.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c12/ex03/ft_list_last.c b/c12/ex03/ft_list_last.c
index 0446f76..84a46c2 100644
--- a/c12/ex03/ft_list_last.c
+++ b/c12/ex03/ft_list_last.c
@@ -6,7 +6,7 @@
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/09 17:18:58 by cacharle #+# #+# */
-/* Updated: 2019/07/09 17:18:59 by cacharle ### ########.fr */
+/* Updated: 2019/07/17 17:30:36 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,7 +14,7 @@
t_list *ft_list_last(t_list *begin_list)
{
- while (begin_list->next)
+ while (begin_list->next != NULL)
begin_list = begin_list->next;
return (begin_list);
}