Commit b97e55f2 by Edward Thomson

Merge pull request #2059 from linquize/git_config_get_crash

Fix segfault when calling git_config_get_* functions when a config fails to load
parents fed98153 c24130e0
......@@ -652,6 +652,7 @@ static int get_entry(
key = normalized;
}
res = GIT_ENOTFOUND;
git_vector_foreach(&cfg->files, i, internal) {
if (!internal || !internal->file)
continue;
......
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