Commit 76e1a679eab9964c2857ead896e170cacb0cef1d

Edward Thomson 2016-03-28T08:56:13

config::write::repeated: init our buffer

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/config/write.c b/tests/config/write.c
index ac0272e..e83cfb4 100644
--- a/tests/config/write.c
+++ b/tests/config/write.c
@@ -700,7 +700,7 @@ void test_config_write__repeated(void)
 {
 	const char *filename = "config-repeated";
 	git_config *cfg;
-	git_buf result;
+	git_buf result = GIT_BUF_INIT;
 	const char *expected = "[sample \"prefix\"]\n\
 \tsetting1 = someValue1\n\
 \tsetting2 = someValue2\n\