Commit 4f2f91a3 by Yuang Li

fix shallow array search

parent d23a7903
......@@ -497,7 +497,7 @@ int git_shallowarray_add(git_shallowarray *array, git_oid *oid)
{
size_t oid_index;
if (git_array_search(&oid_index, array->array, (git_array_compare_cb)git_oid_cmp, &oid) < 0) {
if (git_array_search(&oid_index, array->array, (git_array_compare_cb)git_oid_cmp, oid) < 0) {
git_oid *tmp = git_array_alloc(array->array);
GIT_ERROR_CHECK_ALLOC(tmp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment