aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_init_lists.c')
-rw-r--r--src/ft_init_lists.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 126843c..4aa2d81 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -21,5 +21,11 @@ t_cub
if (!(clist = (t_cub*)malloc(sizeof(t_cub))))
return (NULL);
+ if (!(clist->no_tex_path = (char*)ft_calloc(1, 1)) ||
+ !(clist->so_tex_path = (char*)ft_calloc(1, 1)) ||
+ !(clist->ea_tex_path = (char*)ft_calloc(1, 1)) ||
+ !(clist->we_tex_path = (char*)ft_calloc(1, 1)) ||
+ !(clist->sprite_path = (char*)ft_calloc(1, 1)))
+ return (NULL);
return (clist);
}