diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-10-17 23:56:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-10-17 23:56:35 +0200 |
commit | 2790ba84b6611820caa57fc624304d7ef2efdcdf (patch) | |
tree | 3fb4e5fb2fb27710a4777d403fd9fea55071fff6 | |
parent | Merge branch 'jc/use-of-uc-in-log-messages' (diff) | |
parent | dir: use fspathncmp() in pl_hashmap_cmp() (diff) | |
download | git-2790ba84b6611820caa57fc624304d7ef2efdcdf.tar.xz git-2790ba84b6611820caa57fc624304d7ef2efdcdf.zip |
Merge branch 'rs/use-fspathncmp'
Code clean-up.
* rs/use-fspathncmp:
dir: use fspathncmp() in pl_hashmap_cmp()
-rw-r--r-- | dir.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -669,9 +669,7 @@ int pl_hashmap_cmp(const void *cmp_data UNUSED, ? ee1->patternlen : ee2->patternlen; - if (ignore_case) - return strncasecmp(ee1->pattern, ee2->pattern, min_len); - return strncmp(ee1->pattern, ee2->pattern, min_len); + return fspathncmp(ee1->pattern, ee2->pattern, min_len); } static char *dup_and_filter_pattern(const char *pattern) |