Commit 138e4c2b by Edward Thomson

git_odb__hashfd: propagate error on failures

parent 35ed256b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment