summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-09-08 17:15:42 +0800
committerLinquize <linquize@yahoo.com.hk>2013-09-19 23:14:06 +0800
commit66566516ce5171111ea4c5a8160adb4b0b0dc675 (patch)
tree20d7374e602911f282ddfedf8449c8b8176d85d9 /src/odb.c
parentef6389ad504037e7a4311adbf14f1fa5a5aa4190 (diff)
downloadlibgit2-66566516ce5171111ea4c5a8160adb4b0b0dc675.tar.gz
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 dfb252178..d2d92cb77 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);
@@ -621,7 +620,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;