summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-06-22 13:19:47 +0200
committerPatrick Steinhardt <ps@pks.im>2018-06-22 13:20:07 +0200
commit261267e0f1d36435e3832c4988cb2298b68dc7c2 (patch)
tree783a82384708789afe82ef8478b74456fefe0337
parent6b51f380f27908a3819ccbee4c2b3943b280a1ab (diff)
downloadlibgit2-261267e0f1d36435e3832c4988cb2298b68dc7c2.tar.gz
odb_pack: fix passing partially initialized indexer options
-rw-r--r--src/odb_pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 4107db6c1..2892aa1e2 100644
--- a/src/odb_pack.c
+++ b/src/odb_pack.c
@@ -519,7 +519,7 @@ static int pack_backend__writepack(struct git_odb_writepack **out,
git_transfer_progress_cb progress_cb,
void *progress_payload)
{
- git_indexer_options opts;
+ git_indexer_options opts = GIT_INDEXER_OPTIONS_INIT;
struct pack_backend *backend;
struct pack_writepack *writepack;