aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-21 22:06:14 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-21 22:06:14 +0100
commitd669957a4917d5928ca1a10d635409891ec19ed0 (patch)
treed405206f4d9f9d97280be3c97d814535cea44499 /src/ft_init_lists.c
parentfixed most valgrind bullshit (diff)
download42-cub3d-d669957a4917d5928ca1a10d635409891ec19ed0.tar.gz
42-cub3d-d669957a4917d5928ca1a10d635409891ec19ed0.tar.bz2
42-cub3d-d669957a4917d5928ca1a10d635409891ec19ed0.tar.xz
42-cub3d-d669957a4917d5928ca1a10d635409891ec19ed0.tar.zst
42-cub3d-d669957a4917d5928ca1a10d635409891ec19ed0.zip
Few fixes
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r--src/ft_init_lists.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 29771a5..e94e688 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -61,6 +61,8 @@ t_player
static int8_t
ft_init_win(t_win *wl)
{
+ if (!(wl->wlx = malloc(1)))
+ return (-1);
if (!(wl->winptr = malloc(1)))
return (-1);
wl->inited = 0;