aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 19:53:24 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 19:53:24 +0100
commit032453e44a57af951dd1c35aa7f51dd93a361b7c (patch)
tree13654a7b5a38a33b1a184c0cbc2954ff4f7011d5 /src/ft_init_lists.c
parentValgrind errors fix (diff)
download42-cub3d-032453e44a57af951dd1c35aa7f51dd93a361b7c.tar.gz
42-cub3d-032453e44a57af951dd1c35aa7f51dd93a361b7c.tar.bz2
42-cub3d-032453e44a57af951dd1c35aa7f51dd93a361b7c.tar.xz
42-cub3d-032453e44a57af951dd1c35aa7f51dd93a361b7c.tar.zst
42-cub3d-032453e44a57af951dd1c35aa7f51dd93a361b7c.zip
Suppressed most valgrind errors, one remaining
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r--src/ft_init_lists.c7
1 files changed, 7 insertions, 0 deletions
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);
}