summaryrefslogtreecommitdiffstats
path: root/src/p_lcom_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-06 22:17:36 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-06 22:17:36 +0200
commit0944b3e39666f9ec14e23347bd17852a781a629c (patch)
tree63f348eca35b18af41698c0e9864cdbd13749cca /src/p_lcom_next.c
parentqweqwe (diff)
download42-minishell-0944b3e39666f9ec14e23347bd17852a781a629c.tar.gz
42-minishell-0944b3e39666f9ec14e23347bd17852a781a629c.tar.bz2
42-minishell-0944b3e39666f9ec14e23347bd17852a781a629c.tar.xz
42-minishell-0944b3e39666f9ec14e23347bd17852a781a629c.tar.zst
42-minishell-0944b3e39666f9ec14e23347bd17852a781a629c.zip
In progress
Diffstat (limited to '')
-rw-r--r--src/p_lcom_next.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/p_lcom_next.c b/src/p_lcom_next.c
index dc834a8..16d8aac 100644
--- a/src/p_lcom_next.c
+++ b/src/p_lcom_next.c
@@ -60,7 +60,9 @@ char
if (*ptr == '$' && u_is_not_escaped(word, ptr) == TRUE)
{
if ((word = p_subst_this_var(&ptr, (ptr - word), word, msh)) == NULL)
+ {
return (NULL);
+ }
}
ptr++;
}