diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2012-03-19 17:49:46 -0700 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-19 17:49:46 -0700 |
| commit | 4aa7de15159b3edfcb23173a4a463606f1bfdd19 (patch) | |
| tree | ec347589a2f3fdbb0bee1250e4c4df57702bfb3d /src/sha1_lookup.c | |
| parent | 7c7ff7d11e2d22f7b9c7f8152f5c58dde37ac207 (diff) | |
| download | libgit2-4aa7de15159b3edfcb23173a4a463606f1bfdd19.tar.gz | |
Convert indexer, notes, sha1_lookup, and signature
More files moved to new error handling style.
Diffstat (limited to 'src/sha1_lookup.c')
| -rw-r--r-- | src/sha1_lookup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sha1_lookup.c b/src/sha1_lookup.c index 58d70aeb7..096da1739 100644 --- a/src/sha1_lookup.c +++ b/src/sha1_lookup.c @@ -158,7 +158,8 @@ int sha1_entry_pos(const void *table, #endif if (!(lo <= mi && mi < hi)) { - return git__throw(GIT_ERROR, "Assertion failure. Binary search invariant is false"); + giterr_set(GITERR_INVALID, "Assertion failure. Binary search invariant is false"); + return -1; } mi_key = base + elem_size * mi + key_offset; |
