aboutsummaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/state.c b/src/state.c
index 61d8d41..41c802b 100644
--- a/src/state.c
+++ b/src/state.c
@@ -14,11 +14,12 @@
int ms_state_init(t_state *state, const char **envp)
{
- if ((state->environment = ms_environment_from_array(envp)) == NULL)
- return (-1);
+ state->environment = NULL;
state->path = NULL;
- if ((state->path = ms_path_update(state->path, ft_htget(state->environment, MS_PATH_KEY))) == NULL)
+ if ((state->environment = ms_environment_from_array(envp)) == NULL)
return (-1);
+ /* if ((state->path = ms_path_update(state->path, ft_htget(state->environment, MS_PATH_KEY))) == NULL) */
+ /* return (-1); */
return (0);
}
@@ -26,6 +27,6 @@ void ms_state_destroy(t_state *state)
{
if (state == NULL)
return ;
- ms_path_destroy(state->path);
+ /* ms_path_destroy(state->path); */
ft_htdestroy(state->environment, ms_ht_del_str_entry);
}