Commit ad8aa11288d6cb25d7a26e133759e41b79670b4c

Edward Thomson 2016-02-11T11:26:42

reset test: fix initialization warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/reset/hard.c b/tests/reset/hard.c
index 1499733..0c0af91 100644
--- a/tests/reset/hard.c
+++ b/tests/reset/hard.c
@@ -238,7 +238,7 @@ void test_reset_hard__reflog_is_correct(void)
 
 void test_reset_hard__switch_file_to_dir(void)
 {
-	git_index_entry entry = { 0 };
+	git_index_entry entry = {{ 0 }};
 	git_index *idx;
 	git_object *commit;
 	git_tree *tree;