Commit 3bb9916c75782f5c548285f653f1ccbb2366d900

Edward Thomson 2020-04-05T17:33:06

odb_mempack: use GIT_ASSERT

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/odb_mempack.c b/src/odb_mempack.c
index 6d20b39..d08356a 100644
--- a/src/odb_mempack.c
+++ b/src/odb_mempack.c
@@ -156,7 +156,7 @@ int git_mempack_new(git_odb_backend **out)
 {
 	struct memory_packer_db *db;
 
-	assert(out);
+	GIT_ASSERT_ARG(out);
 
 	db = git__calloc(1, sizeof(struct memory_packer_db));
 	GIT_ERROR_CHECK_ALLOC(db);