diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-27 20:59:02 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-27 20:59:02 +0200 |
commit | cc3aa4907949a66187d0a91b1f7cb55b5cdb21b3 (patch) | |
tree | 5f4712c4aa495d97ed1c64b1f828f48febba9c31 /libft | |
parent | Progress (diff) | |
download | 42-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')
-rw-r--r-- | libft/src/ft_nrealloc.c | 4 |
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); |