summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-09-21 09:34:03 -0700
committerVicent Martí <vicent@github.com>2013-09-21 09:34:03 -0700
commit92d19d16711c059c768063956abd31db346d2e7b (patch)
tree2110237444fb9e24463f159675734f1dd6f0a028 /src/odb.c
parentdaef29ea3ed84c2ec558c46fa08077b5b55fe63d (diff)
parent66566516ce5171111ea4c5a8160adb4b0b0dc675 (diff)
downloadlibgit2-92d19d16711c059c768063956abd31db346d2e7b.tar.gz
Merge pull request #1840 from linquize/warning
Fix warning
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/odb.c b/src/odb.c
index eef9748ca..b2c138aae 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -168,7 +168,6 @@ int git_odb__hashfd(git_oid *out, git_file fd, size_t size, git_otype type)
error = -1;
goto done;
- return -1;
}
error = git_hash_final(out, &ctx);
@@ -623,7 +622,7 @@ int git_odb_exists(git_odb *db, const git_oid *id)
git_odb_backend *b = internal->backend;
if (b->exists != NULL)
- found = b->exists(b, id);
+ found = (bool)b->exists(b, id);
}
return (int)found;