aboutsummaryrefslogtreecommitdiff
path: root/src/lst/ft_lstreverse_ret.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lst/ft_lstreverse_ret.c')
-rw-r--r--src/lst/ft_lstreverse_ret.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lst/ft_lstreverse_ret.c b/src/lst/ft_lstreverse_ret.c
index 03ae98e..caf6ec1 100644
--- a/src/lst/ft_lstreverse_ret.c
+++ b/src/lst/ft_lstreverse_ret.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/15 12:51:15 by cacharle #+# #+# */
-/* Updated: 2020/01/15 13:36:46 by cacharle ### ########.fr */
+/* Updated: 2020/01/18 11:52:50 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,6 +15,7 @@
t_list *ft_lstreverse_ret(t_list *lst)
{
t_list *tmp;
+
if (lst == NULL)
return (NULL);
if (lst->next == NULL)