diff options
Diffstat (limited to 'src/m_loop.c')
-rw-r--r-- | src/m_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |