summaryrefslogtreecommitdiffstats
path: root/src/e_externs_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-18 17:37:43 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-18 17:37:43 +0200
commit0872d876f187a30b63062f77c17b8e78296b0557 (patch)
tree1a85d6c9629335592a6d1bb8a5dda5214cde27be /src/e_externs_next.c
parentUpdated TODO (diff)
download42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.tar.gz
42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.tar.bz2
42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.tar.xz
42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.tar.zst
42-minishell-0872d876f187a30b63062f77c17b8e78296b0557.zip
Handled execve fail
Diffstat (limited to '')
-rw-r--r--src/e_externs_next.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/e_externs_next.c b/src/e_externs_next.c
index c1e248f..ed3ee84 100644
--- a/src/e_externs_next.c
+++ b/src/e_externs_next.c
@@ -92,7 +92,7 @@ char
envline += 1;
if (*envline != '\0')
{
- if (!(envpath = ft_split(envline, ':')))
+ if ((envpath = ft_split(envline, ':')) == NULL)
{
f_alloc_and_destroy_msh(msh);
}