diff options
Diffstat (limited to 'src/m_mshrc.c')
-rw-r--r-- | src/m_mshrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/m_mshrc.c b/src/m_mshrc.c index 40e14a1..41c7bef 100644 --- a/src/m_mshrc.c +++ b/src/m_mshrc.c @@ -29,6 +29,7 @@ uint8_t m_source_mshrc(t_msh *msh) int32_t fd; uint8_t ret; + file[0] = C_NUL; u_get_var_value(home, "$HOME", PATH_MAX, msh); ft_sprintf(file, "%s/%s", home, M_MINISHELLRC); if ((fd = open(file, O_RDONLY)) < 0) |