diff options
author | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 18:51:30 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r4p3.le-101.fr> | 2020-02-15 18:51:30 +0100 |
commit | fbc52949004a067a5c2cfefae1ff3415dbe04a96 (patch) | |
tree | a887e3657e6abd384d729f51c42a2ac4c0869c77 /src/ft_select_get.c | |
parent | Merged (diff) | |
download | 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.tar.gz 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.tar.bz2 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.tar.xz 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.tar.zst 42-cub3d-fbc52949004a067a5c2cfefae1ff3415dbe04a96.zip |
In progress
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r-- | src/ft_select_get.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c index f550d98..4b82430 100644 --- a/src/ft_select_get.c +++ b/src/ft_select_get.c @@ -86,7 +86,7 @@ int8_t if (id < 0 || (*fun_ptr[id])(words, clist) < 0) { ft_free_words(words); - return (-1); + return ((id < 0) ? (-2) : (-1)); } ft_free_words(words); return (id); |