summaryrefslogtreecommitdiffstats
path: root/src/s_com.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-15 15:18:46 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-15 15:18:46 +0200
commit2ad9527e08febe415c01510b39ec1b927960b176 (patch)
tree033e6732ec8640fa249d743c327bef95ed773353 /src/s_com.c
parent&& and || works pretty bav (diff)
download42-minishell-2ad9527e08febe415c01510b39ec1b927960b176.tar.gz
42-minishell-2ad9527e08febe415c01510b39ec1b927960b176.tar.bz2
42-minishell-2ad9527e08febe415c01510b39ec1b927960b176.tar.xz
42-minishell-2ad9527e08febe415c01510b39ec1b927960b176.tar.zst
42-minishell-2ad9527e08febe415c01510b39ec1b927960b176.zip
Cleaner
Diffstat (limited to '')
-rw-r--r--src/s_com.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s_com.c b/src/s_com.c
index 576b407..2abbe9e 100644
--- a/src/s_com.c
+++ b/src/s_com.c
@@ -113,9 +113,9 @@ t_com
com->env_fork = NULL;
if (get_redir(word, &com) != 0)
return (NULL);
- if (!(words = p_subst_args(word, com->redir)))
+ if ((words = p_subst_args(word, com->redir)) == NULL)
return (NULL);
- if (!(words = p_subst_vars(words, msh)))
+ if ((words = p_subst_vars(words, msh)) == NULL)
return (NULL);
words = p_check_args_equals(words, msh);
if (msh->env_fork_tmp[0][0] != '\0')