summaryrefslogtreecommitdiffstats
path: root/src/c_init.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-08-29 19:47:08 +0200
committersalad <fmoenne-@student.le-101.fr>2020-08-29 19:47:08 +0200
commit670e296bee4082214c8ae4e956bdcc41e1260234 (patch)
treee45711246afd752330a6b1d1360dad1b2f6e0106 /src/c_init.c
parenttesting for nothing (diff)
download42-minishell-670e296bee4082214c8ae4e956bdcc41e1260234.tar.gz
42-minishell-670e296bee4082214c8ae4e956bdcc41e1260234.tar.bz2
42-minishell-670e296bee4082214c8ae4e956bdcc41e1260234.tar.xz
42-minishell-670e296bee4082214c8ae4e956bdcc41e1260234.tar.zst
42-minishell-670e296bee4082214c8ae4e956bdcc41e1260234.zip
no more SEGV on e_externs_pipes if prog member is nonsense
Diffstat (limited to 'src/c_init.c')
-rw-r--r--src/c_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_init.c b/src/c_init.c
index c5fc319..63e9e07 100644
--- a/src/c_init.c
+++ b/src/c_init.c
@@ -39,7 +39,7 @@ void c_process_key(t_caps *tcaps) {
while ((bread = read(STDIN_FILENO, nread, sizeof(nread)) != 1)) {
if (bread == -1)
{
- ft_printf("error on read");
+ printf("error on read");
return ;
}
}