summaryrefslogtreecommitdiffstats
path: root/src/m_mshrc.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-01 20:15:33 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-01 20:15:33 +0200
commitfecb30e8db01bb59d2f7af7abcae18c98f6b4bbb (patch)
tree111d7022326343afc3567a93a9be85ba399b6303 /src/m_mshrc.c
parentNormed m_minishell (diff)
download42-minishell-fecb30e8db01bb59d2f7af7abcae18c98f6b4bbb.tar.gz
42-minishell-fecb30e8db01bb59d2f7af7abcae18c98f6b4bbb.tar.bz2
42-minishell-fecb30e8db01bb59d2f7af7abcae18c98f6b4bbb.tar.xz
42-minishell-fecb30e8db01bb59d2f7af7abcae18c98f6b4bbb.tar.zst
42-minishell-fecb30e8db01bb59d2f7af7abcae18c98f6b4bbb.zip
Normed m_prompt
Diffstat (limited to 'src/m_mshrc.c')
-rw-r--r--src/m_mshrc.c1
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)