Commit 073e63d0 by Edward Thomson

object: validate that `odb_obj` was set

parent 241d838f
......@@ -250,6 +250,7 @@ int git_object_lookup_prefix(
if (error < 0)
return error;
GIT_ASSERT(odb_obj);
error = git_object__from_odb_object(object_out, repo, odb_obj, type);
git_odb_object_free(odb_obj);
......
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