From 43e6c82cad5d790c75c918a4eca85cdec894d1c8 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 18 Oct 2019 15:31:00 +0200 Subject: Fixed ft_substr, added a few protection to list functions --- ft_calloc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ft_calloc.c') diff --git a/ft_calloc.c b/ft_calloc.c index 622bdd2..3d1568d 100644 --- a/ft_calloc.c +++ b/ft_calloc.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/07 12:45:37 by cacharle #+# #+# */ -/* Updated: 2019/10/09 12:45:31 by cacharle ### ########.fr */ +/* Updated: 2019/10/18 13:00:38 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,8 +17,6 @@ void *ft_calloc(size_t count, size_t size) { void *mem; - if (count == 0 || size == 0) - return (NULL); if ((mem = malloc(count * size)) == NULL) return (NULL); ft_bzero(mem, count * size); -- cgit