summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-10-30 16:32:46 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2019-10-30 16:32:46 +0100
commit27ea0240a97d0745dda0f87940bfe5940f9c594c (patch)
treeb64a14ea7c3a8091c8127df3a3f2ed11060f08b4 /src/main.c
parentNew libft, feelsgoodman (diff)
download42-minishell-27ea0240a97d0745dda0f87940bfe5940f9c594c.tar.gz
42-minishell-27ea0240a97d0745dda0f87940bfe5940f9c594c.tar.bz2
42-minishell-27ea0240a97d0745dda0f87940bfe5940f9c594c.tar.xz
42-minishell-27ea0240a97d0745dda0f87940bfe5940f9c594c.tar.zst
42-minishell-27ea0240a97d0745dda0f87940bfe5940f9c594c.zip
work work
Diffstat (limited to '')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 9df9d88..cfd3587 100644
--- a/src/main.c
+++ b/src/main.c
@@ -24,6 +24,7 @@ int
char c;
char *arg;
uint8_t i;
+ int ret;
i = 0;
arg = NULL;
@@ -51,8 +52,7 @@ int
i++;
}
arg[i] = '\0';
- if (ft_process_arg(arg) == 8)
- break ;
+ ret = ft_process_arg(arg);
}
free(arg);
arg = NULL;