fix: 'echo '> >> < * ? [ ] | ; [ ] || && ( ) & # $ <<'' stop segfault now

This commit is contained in:
Camille Chauvet
2023-03-30 16:06:34 +02:00
parent 41bbe2bc0b
commit f66ab7790e
4 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/21 13:00:05 by cchauvet #+# #+# */
/* Updated: 2023/03/30 15:42:13 by cchauvet ### ########.fr */
/* Updated: 2023/03/30 15:58:39 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -86,7 +86,7 @@ static int ft_empty_verif(const char *str)
size_t i;
i = 0;
while (str[i] == ' ' || str[i] == '\"' || str[i] == '\'')
while (str[i] == ' ')
i++;
return (str[i] == '\0');
}