diff options
Diffstat (limited to 'win32/glob.c')
-rw-r--r-- | win32/glob.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/glob.c b/win32/glob.c index 1cc6483e7..35a1e9a65 100644 --- a/win32/glob.c +++ b/win32/glob.c | |||
@@ -298,7 +298,7 @@ int glob(const char *restrict pat, int flags, int (*errfunc)(const char *path, i | |||
298 | if (append(&tail, pat, strlen(pat), 0)) | 298 | if (append(&tail, pat, strlen(pat), 0)) |
299 | return GLOB_NOSPACE; | 299 | return GLOB_NOSPACE; |
300 | cnt++; | 300 | cnt++; |
301 | } else | 301 | } else if (!error) |
302 | return GLOB_NOMATCH; | 302 | return GLOB_NOMATCH; |
303 | } | 303 | } |
304 | 304 | ||