diff options
author | Ben Straub <bs@github.com> | 2012-11-30 07:59:18 +0400 |
---|---|---|
committer | Ben Straub <bs@github.com> | 2012-12-01 01:12:15 +0400 |
commit | 55f6f21b7dd5a177e2cc60c1054b438c05ed8f14 (patch) | |
tree | 4035aacea39de443dbe855b98636d459d53670a8 /tests-clar/odb | |
parent | ca901e7b0fb38a7f4748ff5fcde7a2779f3a7771 (diff) |
Deploy versioned git_odb_backend structure
Diffstat (limited to 'tests-clar/odb')
-rw-r--r-- | tests-clar/odb/sorting.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/odb/sorting.c b/tests-clar/odb/sorting.c index bf64f6af4..b4f9e44bc 100644 --- a/tests-clar/odb/sorting.c +++ b/tests-clar/odb/sorting.c @@ -11,11 +11,11 @@ static git_odb_backend *new_backend(int position) { fake_backend *b; - b = git__malloc(sizeof(fake_backend)); + b = git__calloc(1, sizeof(fake_backend)); if (b == NULL) return NULL; - memset(b, 0x0, sizeof(fake_backend)); + b->base.version = GIT_ODB_BACKEND_VERSION; b->position = position; return (git_odb_backend *)b; } |