From 4286b43e9e35242b03f5a38af1099f77901c0b3e Mon Sep 17 00:00:00 2001 From: JozanLeClerc <bousset.rudy@gmail.com> Date: Fri, 24 Jan 2020 18:19:20 +0100 Subject: Much cleaner --- src/ft_init_lists.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ft_init_lists.c') 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); } -- cgit v1.2.3