aboutsummaryrefslogtreecommitdiff
path: root/ft_calloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_calloc.c')
-rw-r--r--ft_calloc.c4
1 files changed, 1 insertions, 3 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);