From 462e664d0fdfbe2e9eae5c7e093c5a23b202dae8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 29 Sep 2020 19:11:10 +0200 Subject: Norm update --- libft/src/ft_lstdelone.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_lstdelone.c') diff --git a/libft/src/ft_lstdelone.c b/libft/src/ft_lstdelone.c index 3653e70..44d807e 100644 --- a/libft/src/ft_lstdelone.c +++ b/libft/src/ft_lstdelone.c @@ -13,10 +13,9 @@ #include #include -void - ft_lstdelone(t_list *lst, void (*del)(void *)) +void ft_lstdelone(t_list *lst, void (*del)(void *)) { - if (lst) + if (lst != NULL) { del(lst->content); free(lst); -- cgit v1.2.3