summaryrefslogtreecommitdiff
path: root/tests-clar/refdb/testdb.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-05-04 18:06:14 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-05-11 11:20:38 +0200
commitc58cac12c24fbb127cf1928bec20decb007a75e8 (patch)
treeb41792fc37e70da0c456926aeb82f311dc3e000c /tests-clar/refdb/testdb.c
parent9bd89d962265b399b537e41058d40a6aeab00e64 (diff)
downloadlibgit2-c58cac12c24fbb127cf1928bec20decb007a75e8.tar.gz
Introduce a glob-filtering iterator
If the backend doesn't provide support for it, the matching is done in refdb on top of a normal iterator.
Diffstat (limited to 'tests-clar/refdb/testdb.c')
-rw-r--r--tests-clar/refdb/testdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/refdb/testdb.c b/tests-clar/refdb/testdb.c
index 4d118562a..961e18d44 100644
--- a/tests-clar/refdb/testdb.c
+++ b/tests-clar/refdb/testdb.c
@@ -123,7 +123,7 @@ static int refdb_test_backend__iterator(git_reference_iterator **out, git_refdb_
GIT_UNUSED(_backend);
- iter = git__malloc(sizeof(refdb_test_iter));
+ iter = git__calloc(1, sizeof(refdb_test_iter));
GITERR_CHECK_ALLOC(iter);
iter->parent.backend = _backend;