From bec06f4323a2cb2c0bc1594df797c529a35d41e2 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 29 Jan 2020 16:09:52 +0100 Subject: Got colors --- src/ft_get_res.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/ft_get_res.c') diff --git a/src/ft_get_res.c b/src/ft_get_res.c index 850e82e..6fecb74 100644 --- a/src/ft_get_res.c +++ b/src/ft_get_res.c @@ -18,10 +18,7 @@ ft_get_res(char **words, t_cub *clist) { if (!(*words + 0) || !(*(words + 1)) || !(*(words + 2)) || (*(words + 3))) - { - ft_free_words(words); - return (ft_map_error(clist)); - } + return (-1); ft_checkdigit(words[1], clist); ft_checkdigit(words[2], clist); clist->wlist->x_size = ft_atoi(words[1]); -- cgit v1.2.3