summaryrefslogtreecommitdiffstats
path: root/src/e_builtins.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-05 16:11:54 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-05 16:11:54 +0200
commitffd4838e8fbaafa80945bcbd74c0dea3ae53105b (patch)
treef2e35e4a7a6c219d584ed54b2d0580a9e3f7c934 /src/e_builtins.c
parentTODO update (diff)
download42-minishell-ffd4838e8fbaafa80945bcbd74c0dea3ae53105b.tar.gz
42-minishell-ffd4838e8fbaafa80945bcbd74c0dea3ae53105b.tar.bz2
42-minishell-ffd4838e8fbaafa80945bcbd74c0dea3ae53105b.tar.xz
42-minishell-ffd4838e8fbaafa80945bcbd74c0dea3ae53105b.tar.zst
42-minishell-ffd4838e8fbaafa80945bcbd74c0dea3ae53105b.zip
Fix
Diffstat (limited to '')
-rw-r--r--src/e_builtins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/e_builtins.c b/src/e_builtins.c
index 734a317..d08cf63 100644
--- a/src/e_builtins.c
+++ b/src/e_builtins.c
@@ -81,7 +81,7 @@ static void e_builtin_parent(pid_t pid,
else if (bu_id == B_ID_EXIT)
{
if (msh->fd == STDIN_FILENO)
- m_dump_hist(msh);
+ m_dump_hist(msh->curr_hist_ptr, msh);
s_com_destroy(&msh->com);
s_line_clear(&msh->curr);
s_destroy(msh);