summaryrefslogtreecommitdiff
path: root/src/pack-objects.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r--src/pack-objects.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c
index c4c061a3a..fd181fc5e 100644
--- a/src/pack-objects.c
+++ b/src/pack-objects.c
@@ -135,8 +135,7 @@ int git_packbuilder_new(git_packbuilder **out, git_repository *repo)
if (!pb->walk_objects)
goto on_error;
- if (git_pool_init(&pb->object_pool, sizeof(git_walk_object), 0) < 0)
- goto on_error;
+ git_pool_init(&pb->object_pool, sizeof(git_walk_object));
pb->repo = repo;
pb->nr_threads = 1; /* do not spawn any thread by default */