summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-02-11 11:26:42 -0800
committerEdward Thomson <ethomson@github.com>2016-02-11 11:26:42 -0800
commitad8aa11288d6cb25d7a26e133759e41b79670b4c (patch)
treecfd8f8d446a8c59658a4ac07cf87a45f10ee94eb
parent488e2b85053a45dd2ce6a37b7d5cf70870be5ed8 (diff)
downloadlibgit2-ad8aa11288d6cb25d7a26e133759e41b79670b4c.tar.gz
reset test: fix initialization warning
-rw-r--r--tests/reset/hard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/reset/hard.c b/tests/reset/hard.c
index 149973374..0c0af914c 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;