Unverified Commit 0e530061 by Edward Thomson Committed by GitHub

Merge pull request #6246 from bierbaum/wilhelm/fix_extension_validation_string_bug

Fix a string concatenation bug when validating extensions
parents 2a0d0bd1 ecc722c3
......@@ -1462,6 +1462,7 @@ static int check_valid_extension(const git_config_entry *entry, void *payload)
}
for (i = 0; i < ARRAY_SIZE(builtin_extensions); i++) {
git_str_clear(&cfg);
extension = builtin_extensions[i];
if ((error = git_str_printf(&cfg, "extensions.%s", extension)) < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment