Skip to content

Commit 6b51f38

Browse files
committed
indexer: correctly initialize struct with {0}
1 parent 65a4b06 commit 6b51f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/indexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ static int resolve_deltas(git_indexer *idx, git_transfer_progress *stats)
10001000
progressed = 0;
10011001
non_null = 0;
10021002
git_vector_foreach(&idx->deltas, i, delta) {
1003-
git_rawobj obj = {NULL};
1003+
git_rawobj obj = {0};
10041004

10051005
if (!delta)
10061006
continue;

0 commit comments

Comments
 (0)