From cc3aa4907949a66187d0a91b1f7cb55b5cdb21b3 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 27 Sep 2020 20:59:02 +0200 Subject: In progress --- libft/src/ft_nrealloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libft/src') diff --git a/libft/src/ft_nrealloc.c b/libft/src/ft_nrealloc.c index 6b42380..7369b42 100644 --- a/libft/src/ft_nrealloc.c +++ b/libft/src/ft_nrealloc.c @@ -17,9 +17,9 @@ void *ft_nrealloc(void *ptr, size_t oldsize, size_t newsize) { - void *nptr; + void *nptr; - if (!ptr) + if (ptr == NULL) { if ((ptr = malloc(newsize)) == NULL) return (NULL); -- cgit v1.2.3