diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 17:54:15 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 17:54:15 +0200 |
commit | f2924d712bfb49037763f232e0132d78334f4219 (patch) | |
tree | c184b2cd238c53b0293f29f69ed948931035ed59 /src/s_init.c | |
parent | Added -P to cwd (diff) | |
download | 42-minishell-f2924d712bfb49037763f232e0132d78334f4219.tar.gz 42-minishell-f2924d712bfb49037763f232e0132d78334f4219.tar.bz2 42-minishell-f2924d712bfb49037763f232e0132d78334f4219.tar.xz 42-minishell-f2924d712bfb49037763f232e0132d78334f4219.tar.zst 42-minishell-f2924d712bfb49037763f232e0132d78334f4219.zip |
FeelsGoodMan
Diffstat (limited to 'src/s_init.c')
-rw-r--r-- | src/s_init.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/s_init.c b/src/s_init.c index cd03e72..54be62f 100644 --- a/src/s_init.c +++ b/src/s_init.c @@ -93,9 +93,6 @@ t_msh init_buptr(msh); msh->curr = NULL; msh->vars = NULL; - msh->cwd = NULL; - if ((msh->cwd = u_get_var_value("$PWD", msh)) == NULL) - msh->cwd = getcwd(NULL, 0); inc_shlvl(msh); return (msh); } |