diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-10 19:53:00 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-10 19:53:00 +0200 |
commit | 89c27ba72e11665823cba7023f694a8639891ccb (patch) | |
tree | dfdd9771eb2e4bb2ae5d354424350a8edcfbd43b /src/u_vars_next.c | |
parent | I was born an idiot I swear (diff) | |
download | 42-minishell-89c27ba72e11665823cba7023f694a8639891ccb.tar.gz 42-minishell-89c27ba72e11665823cba7023f694a8639891ccb.tar.bz2 42-minishell-89c27ba72e11665823cba7023f694a8639891ccb.tar.xz 42-minishell-89c27ba72e11665823cba7023f694a8639891ccb.tar.zst 42-minishell-89c27ba72e11665823cba7023f694a8639891ccb.zip |
New libft func, cool stuff
Diffstat (limited to 'src/u_vars_next.c')
-rw-r--r-- | src/u_vars_next.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/u_vars_next.c b/src/u_vars_next.c index 2135c6b..2f23667 100644 --- a/src/u_vars_next.c +++ b/src/u_vars_next.c @@ -83,13 +83,11 @@ void u_subst_var_value(const char varname[], const char newval[], t_msh *msh) { char new_line_fmt[ARG_MAX]; - /* char newval_subst[ARG_MAX]; */ int64_t env_line; if ((env_line = u_get_env_var_line(varname + 1, msh)) > -1) { ft_memdel((void*)&msh->envp[env_line]); - /* ft_sprintf(new_line_fmt, "%s=%s", varname + 1, newval_subst); */ ft_sprintf(new_line_fmt, "%s=%s", varname + 1, newval); if ((msh->envp[env_line] = (char*)malloc((ft_strlen(new_line_fmt) + 1) * sizeof(char))) == NULL) |