aboutsummaryrefslogtreecommitdiff
path: root/ft_lstadd_front_bonus.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_lstadd_front_bonus.c')
-rw-r--r--ft_lstadd_front_bonus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ft_lstadd_front_bonus.c b/ft_lstadd_front_bonus.c
index 462f85e..282b0b4 100644
--- a/ft_lstadd_front_bonus.c
+++ b/ft_lstadd_front_bonus.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/09 09:02:25 by cacharle #+# #+# */
-/* Updated: 2019/10/17 09:06:38 by cacharle ### ########.fr */
+/* Updated: 2019/10/18 12:16:06 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,7 +14,7 @@
void ft_lstadd_front(t_list **alst, t_list *new)
{
- if (alst == NULL)
+ if (alst == NULL || new == NULL)
return ;
new->next = *alst;
*alst = new;