diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 15:34:34 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 15:34:34 +0200 |
commit | a4c02cf9a4d13dc81b015a6acc19628e48b7367b (patch) | |
tree | a002631374e42f7c2580560748d1d94774bafa1a /src/ft_s_init.c | |
parent | More info (diff) | |
download | 42-minishell-a4c02cf9a4d13dc81b015a6acc19628e48b7367b.tar.gz 42-minishell-a4c02cf9a4d13dc81b015a6acc19628e48b7367b.tar.bz2 42-minishell-a4c02cf9a4d13dc81b015a6acc19628e48b7367b.tar.xz 42-minishell-a4c02cf9a4d13dc81b015a6acc19628e48b7367b.tar.zst 42-minishell-a4c02cf9a4d13dc81b015a6acc19628e48b7367b.zip |
Update
Diffstat (limited to 'src/ft_s_init.c')
-rw-r--r-- | src/ft_s_init.c | 12 |
1 files changed, 7 insertions, 5 deletions
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 <ft_s_init.h> -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); } |