tests: fix warning for nested struct initialization
diff --git a/tests/index/racy.c b/tests/index/racy.c
index 862c5ab..a24d47a 100644
--- a/tests/index/racy.c
+++ b/tests/index/racy.c
@@ -178,7 +178,7 @@ static void setup_uptodate_files(void)
{
git_buf path = GIT_BUF_INIT;
git_index *index;
- git_index_entry new_entry = {0};
+ git_index_entry new_entry = {{0}};
cl_git_pass(git_repository_index(&index, g_repo));