mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 19:51:31 +00:00
Merge pull request #2059 from linquize/git_config_get_crash
Fix segfault when calling git_config_get_* functions when a config fails to load
This commit is contained in:
commit
b97e55f2f1
@ -652,6 +652,7 @@ static int get_entry(
|
|||||||
key = normalized;
|
key = normalized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
res = GIT_ENOTFOUND;
|
||||||
git_vector_foreach(&cfg->files, i, internal) {
|
git_vector_foreach(&cfg->files, i, internal) {
|
||||||
if (!internal || !internal->file)
|
if (!internal || !internal->file)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user