summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-03-28 08:56:13 -0700
committerEdward Thomson <ethomson@github.com>2016-03-28 08:56:13 -0700
commit76e1a679eab9964c2857ead896e170cacb0cef1d (patch)
tree97bb524c9387ab1fbfb70d709f15960047f41785
parente25e1ca1b24a2cb0f7c10f9ff6723283b06e4f22 (diff)
downloadlibgit2-76e1a679eab9964c2857ead896e170cacb0cef1d.tar.gz
config::write::repeated: init our buffer
-rw-r--r--tests/config/write.c2
1 files changed, 1 insertions, 1 deletions
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\