diff options
Diffstat (limited to '')
-rw-r--r-- | src/m_minishell.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/m_minishell.c b/src/m_minishell.c index e88207b..a538041 100644 --- a/src/m_minishell.c +++ b/src/m_minishell.c @@ -30,13 +30,11 @@ int int32_t ret; t_msh *msh; - /* TODO: handle general variables | $var */ - if (!(msh = init_msh(argv, envp))) + if ((msh = init_msh(argv, envp)) == NULL) { ft_dprintf(2, "%s\n", strerror(errno)); return (FT_RET_ALLOC); } - /* TODO: delet this */ ret = m_argv(argc, argv, msh); s_destroy(msh); return (ret); |