From 032453e44a57af951dd1c35aa7f51dd93a361b7c Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 15 Mar 2020 19:53:24 +0100 Subject: Suppressed most valgrind errors, one remaining --- src/ft_init_lists.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c index cd928b0..3e4dc96 100644 --- a/src/ft_init_lists.c +++ b/src/ft_init_lists.c @@ -91,9 +91,16 @@ static int8_t int8_t ft_init_cub3d(t_cub *clist) { + uint8_t i; if (ft_init_cub(clist) < 0) return (-1); if (ft_init_win(&clist->wlist) < 0) return (-1); + i = 0; + while (i < 9) + { + ft_bzero(clist->sprites[i], 4096); + i++; + } return (0); } -- cgit v1.2.3