summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_nrealloc.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-27 20:59:02 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-27 20:59:02 +0200
commitcc3aa4907949a66187d0a91b1f7cb55b5cdb21b3 (patch)
tree5f4712c4aa495d97ed1c64b1f828f48febba9c31 /libft/src/ft_nrealloc.c
parentProgress (diff)
download42-minishell-cc3aa4907949a66187d0a91b1f7cb55b5cdb21b3.tar.gz
42-minishell-cc3aa4907949a66187d0a91b1f7cb55b5cdb21b3.tar.bz2
42-minishell-cc3aa4907949a66187d0a91b1f7cb55b5cdb21b3.tar.xz
42-minishell-cc3aa4907949a66187d0a91b1f7cb55b5cdb21b3.tar.zst
42-minishell-cc3aa4907949a66187d0a91b1f7cb55b5cdb21b3.zip
In progress
Diffstat (limited to 'libft/src/ft_nrealloc.c')
-rw-r--r--libft/src/ft_nrealloc.c4
1 files changed, 2 insertions, 2 deletions
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);