Commit a7bd157ebfcfd517b65e0ddc017286f61bc8b218

Patrick Steinhardt 2015-11-30T17:40:49

tests: fix warning for nested struct initialization

1
2
3
4
5
6
7
8
9
10
11
12
13
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));