Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21d8832

Browse files
author
Edward Thomson
committed
config::write::repeated: init our buffer
1 parent a13c1ec commit 21d8832

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/config/write.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ void test_config_write__repeated(void)
700700
{
701701
const char *filename = "config-repeated";
702702
git_config *cfg;
703-
git_buf result;
703+
git_buf result = GIT_BUF_INIT;
704704
const char *expected = "[sample \"prefix\"]\n\
705705
\tsetting1 = someValue1\n\
706706
\tsetting2 = someValue2\n\

0 commit comments

Comments
 (0)