From 6805673bff96379c03ba32e681f8fb40aad52adc Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 6 Sep 2020 22:12:15 +0200 Subject: Improvement --- src/m_loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/m_loop.c') diff --git a/src/m_loop.c b/src/m_loop.c index d5a3ceb..0a810a0 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -40,7 +40,7 @@ void int32_t fd; char histfile[PATH_MAX]; - if (ft_strlen(msh->hist) > 0) + if (msh->hist[0] != C_NUL && ft_strlen(msh->hist) > 0) { u_get_var_value(histfile, "$HISTFILE", PATH_MAX, msh); if (histfile[0] != C_NUL) -- cgit v1.2.3