This commit is contained in:
mdev9
2024-04-26 10:54:32 +02:00
parent 40a5533c5f
commit c3a0786da1
10 changed files with 52 additions and 42 deletions

View File

@ -6,7 +6,7 @@
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/15 12:53:29 by tomoron #+# #+# */
/* Updated: 2024/04/25 10:35:48 by tomoron ### ########.fr */
/* Updated: 2024/04/26 10:49:36 by marde-vr ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
@ -19,7 +19,7 @@ int filename_corresponds(char *wildcard, char *value)
{
if (*wildcard == '*')
{
while(*wildcard == '*' && wildcard[1] == '*')
while (*wildcard == '*' && wildcard[1] == '*')
wildcard++;
if (!wildcard[1])
return (1);