diff options
Diffstat (limited to '')
-rw-r--r-- | libft/src/ft_lstnew.c | 7 |
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); |