Merge branch 'rs/use-fspathncmp'

Code clean-up.

* rs/use-fspathncmp:
  dir: use fspathncmp() in pl_hashmap_cmp()
maint
Junio C Hamano 2022-10-17 14:56:35 -07:00
commit 2790ba84b6
1 changed files with 1 additions and 3 deletions

4
dir.c
View File

@ -669,9 +669,7 @@ int pl_hashmap_cmp(const void *cmp_data UNUSED,
? ee1->patternlen ? ee1->patternlen
: ee2->patternlen; : ee2->patternlen;


if (ignore_case) return fspathncmp(ee1->pattern, ee2->pattern, min_len);
return strncasecmp(ee1->pattern, ee2->pattern, min_len);
return strncmp(ee1->pattern, ee2->pattern, min_len);
} }


static char *dup_and_filter_pattern(const char *pattern) static char *dup_and_filter_pattern(const char *pattern)