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_lstnew.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_lstnew.c') diff --git a/libft/src/ft_lstnew.c b/libft/src/ft_lstnew.c index 9f66691..bef0704 100644 --- a/libft/src/ft_lstnew.c +++ b/libft/src/ft_lstnew.c @@ -12,14 +12,15 @@ #include -t_list - *ft_lstnew(void *content) +t_list *ft_lstnew(void *content) { t_list *nlst; nlst = (t_list*)ft_calloc(1, sizeof(t_list)); - if (!nlst) + if (nlst == NULL) + { return (NULL); + } nlst->content = content; nlst->next = NULL; return (nlst); -- cgit v1.2.3