summaryrefslogtreecommitdiffstats
path: root/src/p_lcom_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 22:38:54 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-27 22:38:54 +0200
commit280ecd341f1ec88abe325fa69b197bca3e43d2f1 (patch)
tree3f10bdb634f5a727bbf2e410072bc8f6537310e4 /src/p_lcom_next.c
parentIn progress (diff)
download42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.tar.gz
42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.tar.bz2
42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.tar.xz
42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.tar.zst
42-minishell-280ecd341f1ec88abe325fa69b197bca3e43d2f1.zip
Now can subst env vars
Diffstat (limited to 'src/p_lcom_next.c')
-rw-r--r--src/p_lcom_next.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p_lcom_next.c b/src/p_lcom_next.c
index a4fbb61..a0ca8d1 100644
--- a/src/p_lcom_next.c
+++ b/src/p_lcom_next.c
@@ -34,7 +34,7 @@ static int8_t
varlen += 1;
if (!(s_varname = ft_substr(*p_words, (uint32_t)i, varlen - i)))
return (-1);
- varval = get_var_value(s_varname, msh);
+ varval = u_get_var_value(s_varname, msh);
*p_words = ft_strsubst(*p_words, s_varname, varval);
ft_memdel((void*)&s_varname);
ft_memdel((void*)&varval);