Commit c24130e0 by Linquize

Fix segfault when calling git_config_get_* functions when a config fails to load

Reinitialize the result code of get_entry() to GIT_ENOTFOUND
parent f3a302ad
......@@ -651,6 +651,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