diff --git a/src/base/system.cpp b/src/base/system.cpp index 092a781ca..a133d704f 100644 --- a/src/base/system.cpp +++ b/src/base/system.cpp @@ -2842,7 +2842,7 @@ int str_comp_filenames(const char *a, const char *b) return 1; else if(*b >= '0' && *b <= '9') return -1; - else if(!(!result && *a && *b)) + else if(result || *a == '\0' || *b == '\0') return result; }