aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_lists.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_init_lists.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 4aa2d81..799204b 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -11,6 +11,9 @@ t_win
if (!(wlist = (t_win*)malloc(sizeof(t_win))))
return (NULL);
+ if (!(wlist->wlx = ft_calloc(1, 1)) ||
+ !(wlist->winptr = ft_calloc(1, 1)))
+ return (NULL);
return (wlist);
}