summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_lstnew.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:11:10 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:11:10 +0200
commit462e664d0fdfbe2e9eae5c7e093c5a23b202dae8 (patch)
treecff5c7b5852874c8812bfa3dc04cc8df058a2238 /libft/src/ft_lstnew.c
parentSome norm (diff)
download42-minishell-462e664d0fdfbe2e9eae5c7e093c5a23b202dae8.tar.gz
42-minishell-462e664d0fdfbe2e9eae5c7e093c5a23b202dae8.tar.bz2
42-minishell-462e664d0fdfbe2e9eae5c7e093c5a23b202dae8.tar.xz
42-minishell-462e664d0fdfbe2e9eae5c7e093c5a23b202dae8.tar.zst
42-minishell-462e664d0fdfbe2e9eae5c7e093c5a23b202dae8.zip
Norm update
Diffstat (limited to 'libft/src/ft_lstnew.c')
-rw-r--r--libft/src/ft_lstnew.c7
1 files changed, 4 insertions, 3 deletions
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 <libft.h>
-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);