summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-03-06 16:14:31 -0800
committerRussell Belfer <arrbee@arrbee.com>2012-03-06 16:27:13 -0800
commitae9e29fde7e7d1c0c3e95bdabbb5c96fc71b1c71 (patch)
tree65d8215f898fc30b579b72d815e6adc78823dd6c /src/index.c
parentcb8a79617b15e347f26d21cedde0f2b8670c1876 (diff)
downloadlibgit2-ae9e29fde7e7d1c0c3e95bdabbb5c96fc71b1c71.tar.gz
Migrating diff to new error handling
Ended up migrating a bunch of upstream functions as well including vector, attr_file, and odb in order to get this to work right.
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index b646dfcbb..d5410a3a7 100644
--- a/src/index.c
+++ b/src/index.c
@@ -544,7 +544,7 @@ const git_index_entry_unmerged *git_index_get_unmerged_bypath(git_index *index,
if (!index->unmerged.length)
return NULL;
- if ((pos = git_vector_bsearch2(&index->unmerged, unmerged_srch, path)) < GIT_SUCCESS)
+ if ((pos = git_vector_bsearch2(&index->unmerged, unmerged_srch, path)) < 0)
return NULL;
return git_vector_get(&index->unmerged, pos);