summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/odb.c b/src/odb.c
index 5c59a4f40..8fbcebd03 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -1446,6 +1446,9 @@ int git_odb_read(
const git_oid *id)
{
attempt:
+
+ assert(out && db);
+
if (!git_odb__read_packed(out, db, id))
return GIT_SUCCESS;
if (!git_odb__read_loose(out, db, id))