]> git.ipfire.org Git - thirdparty/git.git/blobdiff - path.c
Git 2.20-rc0
[thirdparty/git.git] / path.c
diff --git a/path.c b/path.c
index bf4bb02a27be020efbd3afb560c40cba0ad84043..dc3294c71e1e72ae2aae9164c790e27d1237e956 100644 (file)
--- a/path.c
+++ b/path.c
@@ -1371,7 +1371,7 @@ only_spaces_and_periods:
                        saw_tilde = 1;
                } else if (i >= 6)
                        return 0;
-               else if (name[i] 0) {
+               else if (name[i] & 0x80) {
                        /*
                         * We know our needles contain only ASCII, so we clamp
                         * here to make the results of tolower() sane.