rectif match with ?

This commit is contained in:
william 2017-03-27 01:07:32 +02:00
parent 57406817c7
commit 8f34c0f318

View file

@ -113,7 +113,7 @@ int match_pattern(t_glob *gl, char *str, char *full_word)
if (*str != *gl->pat) if (*str != *gl->pat)
return (0); return (0);
} }
else if (*gl->pat == '?') else if (*gl->pat == '?' && *str)
; ;
else if (*gl->pat == '[') else if (*gl->pat == '[')
{ {