diff options
Diffstat (limited to 'src/object.c')
-rw-r--r-- | src/object.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/object.c b/src/object.c index 1b47ab1a6..749b0caf2 100644 --- a/src/object.c +++ b/src/object.c @@ -86,7 +86,8 @@ int git_object__from_raw( GIT_ERROR_CHECK_ALLOC(object); object->cached.flags = GIT_CACHE_STORE_PARSED; object->cached.type = type; - git_odb_hash(&object->cached.oid, data, size, type); + if ((error = git_odb_hash(&object->cached.oid, data, size, type)) < 0) + return error; /* Parse raw object data */ def = &git_objects_table[type]; |