Commit 261267e0f1d36435e3832c4988cb2298b68dc7c2

Patrick Steinhardt 2018-06-22T13:19:47

odb_pack: fix passing partially initialized indexer options

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/odb_pack.c b/src/odb_pack.c
index 4107db6..2892aa1 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;