From 76e1a679eab9964c2857ead896e170cacb0cef1d Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 28 Mar 2016 08:56:13 -0700 Subject: [PATCH] config::write::repeated: init our buffer --- tests/config/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/config/write.c b/tests/config/write.c index ac0272eac..e83cfb415 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\