summaryrefslogtreecommitdiffstats
path: root/src/s_init.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-04 17:54:15 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-04 17:54:15 +0200
commitf2924d712bfb49037763f232e0132d78334f4219 (patch)
treec184b2cd238c53b0293f29f69ed948931035ed59 /src/s_init.c
parentAdded -P to cwd (diff)
download42-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.c3
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);
}