summaryrefslogtreecommitdiffstats
path: root/src/m_minishell.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-15 18:00:23 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-15 18:00:23 +0200
commit56ccad6b85a5f3f17eebaf4ba511e07ba760b050 (patch)
treeb7073ccf7712baf52ee5c7792130029495249d3f /src/m_minishell.c
parentNow deletes comments (diff)
download42-minishell-56ccad6b85a5f3f17eebaf4ba511e07ba760b050.tar.gz
42-minishell-56ccad6b85a5f3f17eebaf4ba511e07ba760b050.tar.bz2
42-minishell-56ccad6b85a5f3f17eebaf4ba511e07ba760b050.tar.xz
42-minishell-56ccad6b85a5f3f17eebaf4ba511e07ba760b050.tar.zst
42-minishell-56ccad6b85a5f3f17eebaf4ba511e07ba760b050.zip
Can read scripts, but need to handle fails
Diffstat (limited to '')
-rw-r--r--src/m_minishell.c4
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);