diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-06 22:12:15 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-06 22:12:15 +0200 |
commit | 6805673bff96379c03ba32e681f8fb40aad52adc (patch) | |
tree | b1a9b1978ba4f7577e8544bcccf8ccc08c360037 /src/m_loop.c | |
parent | Cool (diff) | |
download | 42-minishell-6805673bff96379c03ba32e681f8fb40aad52adc.tar.gz 42-minishell-6805673bff96379c03ba32e681f8fb40aad52adc.tar.bz2 42-minishell-6805673bff96379c03ba32e681f8fb40aad52adc.tar.xz 42-minishell-6805673bff96379c03ba32e681f8fb40aad52adc.tar.zst 42-minishell-6805673bff96379c03ba32e681f8fb40aad52adc.zip |
Improvement
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) |