summaryrefslogtreecommitdiffstats
path: root/src/b_pwd.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-10 17:56:38 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-10 17:56:38 +0200
commit4b233e06a16bf5183223e8253b4d9ac9ee59e6a2 (patch)
treedc36a64dcad37e076f478aadc7cccb0f322ea192 /src/b_pwd.c
parentpwd TODO done (diff)
download42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.tar.gz
42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.tar.bz2
42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.tar.xz
42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.tar.zst
42-minishell-4b233e06a16bf5183223e8253b4d9ac9ee59e6a2.zip
Work in progress
Diffstat (limited to '')
-rw-r--r--src/b_pwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/b_pwd.c b/src/b_pwd.c
index 5e4209e..e3da005 100644
--- a/src/b_pwd.c
+++ b/src/b_pwd.c
@@ -34,7 +34,7 @@ uint8_t
return (0);
}
if ((cwd = ft_strdup(msh->cwd)) == NULL)
- f_fail_alloc_and_destroy(msh);
+ f_alloc_and_destroy_msh(msh);
ft_printf("%s\n", cwd);
ft_memdel((void*)&cwd);
return (0);