diff options
Diffstat (limited to 'src/regex/glob.c')
| -rw-r--r-- | src/regex/glob.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/regex/glob.c b/src/regex/glob.c index 5b6ff124..2d4d562e 100644 --- a/src/regex/glob.c +++ b/src/regex/glob.c @@ -179,7 +179,7 @@ int glob(const char *restrict pat, int flags, int (*errfunc)(const char *path, i  	if (strnlen(p, PATH_MAX+1) > PATH_MAX) return GLOB_NOSPACE; -	if (*p) error = match_in_dir(d, p, flags, errfunc, &tail); +	if (*pat) error = match_in_dir(d, p, flags, errfunc, &tail);  	if (error == GLOB_NOSPACE) {  		freelist(&head);  		return error; | 
