]> git.proxmox.com Git - libgit2.git/commitdiff
iterator: use correct search function
authorEdward Thomson <ethomson@github.com>
Thu, 31 Mar 2016 19:05:34 +0000 (15:05 -0400)
committerEdward Thomson <ethomson@github.com>
Thu, 31 Mar 2016 21:58:43 +0000 (17:58 -0400)
src/iterator.c

index 4202e00cd6047b40570d57a3307ca4cada4086b5..3cefe911378b2175828348500bcba25d9672a6ec 100644 (file)
@@ -34,7 +34,7 @@ static void iterator_set_ignore_case(git_iterator *iter, bool ignore_case)
        iter->strcomp = ignore_case ? git__strcasecmp : git__strcmp;
        iter->strncomp = ignore_case ? git__strncasecmp : git__strncmp;
        iter->prefixcomp = ignore_case ? git__prefixcmp_icase : git__prefixcmp;
-       iter->entry_srch = ignore_case ? git_index_entry_srch : git_index_entry_isrch;
+       iter->entry_srch = ignore_case ? git_index_entry_isrch : git_index_entry_srch;
 
        git_vector_set_cmp(&iter->pathlist, (git_vector_cmp)iter->strcomp);
 }