summaryrefslogtreecommitdiffstats
path: root/src/ft_s_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_s_init.c')
-rw-r--r--src/ft_s_init.c12
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);
}