diff options
Diffstat (limited to '')
-rw-r--r-- | libft/src/ft_lstdelone.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 <libft.h> #include <stdlib.h> -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); |