diff options
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); | 
