Fix glob error handling

fixes #5859
This commit is contained in:
Jean Flach 2017-12-14 17:04:35 +01:00
parent 1bf12c9685
commit e45ede6271
1 changed files with 1 additions and 1 deletions

View File

@ -553,7 +553,7 @@ bool Utility::Glob(const String& pathSpec, const std::function<void (const Strin
int rc = glob(pathSpec.CStr(), GLOB_NOSORT, GlobErrorHandler, &gr);
if (rc < 0) {
if (rc) {
if (rc == GLOB_NOMATCH)
return false;