Skip to content

Commit 073e63d

Browse files
committed
object: validate that odb_obj was set
1 parent 241d838 commit 073e63d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libgit2/object.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ int git_object_lookup_prefix(
250250
if (error < 0)
251251
return error;
252252

253+
GIT_ASSERT(odb_obj);
253254
error = git_object__from_odb_object(object_out, repo, odb_obj, type);
254255

255256
git_odb_object_free(odb_obj);

0 commit comments

Comments
 (0)