Commit 505f37b4 by Vicent Marti

config: Only dereference value on success

parent 67dad09b
......@@ -400,7 +400,7 @@ static int get_string_at_file(const char **out, git_config_file *file, const cha
*out = NULL;
res = file->get(file, name, &entry);
if (res != GIT_ENOTFOUND)
if (!res)
*out = entry->value;
return res;
......
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