summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index 47fdd13dd..82b4310cf 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -194,7 +194,7 @@ int git_odb__hashfd(git_oid *out, git_file fd, size_t size, git_otype type)
}
if ((error = git_hash_ctx_init(&ctx)) < 0)
- return -1;
+ return error;
hdr_len = git_odb__format_object_header(hdr, sizeof(hdr), size, type);