diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-08 18:50:11 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-08 18:50:11 +0200 |
commit | 4dd10e6f4de22446ea84d7b194d2a18cb6e43c6c (patch) | |
tree | 2768d27ebe01fa5e74b4e6d14c5defdfd501a1d6 /src/m_loop.c | |
parent | static hist, words fix (diff) | |
download | 42-minishell-4dd10e6f4de22446ea84d7b194d2a18cb6e43c6c.tar.gz 42-minishell-4dd10e6f4de22446ea84d7b194d2a18cb6e43c6c.tar.bz2 42-minishell-4dd10e6f4de22446ea84d7b194d2a18cb6e43c6c.tar.xz 42-minishell-4dd10e6f4de22446ea84d7b194d2a18cb6e43c6c.tar.zst 42-minishell-4dd10e6f4de22446ea84d7b194d2a18cb6e43c6c.zip |
Names
Diffstat (limited to '')
-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 7dc19e0..9d00f2b 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -87,7 +87,7 @@ uint8_t if (fd == STDIN_FILENO) m_prompt_psx(1, msh); gnl = get_next_line(fd, &line); - if (line[0] != '\0') + if (line[0] != C_NUL) { line = m_check_multi_backslash(fd, line, msh); line = m_check_multi_pipe(fd, line, msh); |