From a4c02cf9a4d13dc81b015a6acc19628e48b7367b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 20 Apr 2020 15:34:34 +0200 Subject: Update --- src/ft_s_init.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/ft_s_init.c') diff --git a/src/ft_s_init.c b/src/ft_s_init.c index 82293be..103725b 100644 --- a/src/ft_s_init.c +++ b/src/ft_s_init.c @@ -12,14 +12,16 @@ #include -t_data -*ft_init_data(void) +t_msh +*ft_init_msh(void) { - t_data *data; + t_msh *msh; - if (!(data = (t_data*)malloc(sizeof(t_data)))) + if (!(msh = (t_msh*)malloc(sizeof(t_msh)))) { return (NULL); } - return (data); + msh->envp = NULL; + msh->lcom = NULL; + return (msh); } -- cgit v1.2.3