diff options
| author | Vicent Marti <tanoku@gmail.com> | 2012-10-25 19:22:35 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2012-10-25 19:22:35 +0200 |
| commit | 505f37b41a7d80c539a33d28aec947cd87bb1b6c (patch) | |
| tree | 1e6c0a62f9dffea7c7367bf27c271012797bf3e1 /src/config.c | |
| parent | 67dad09bdb05f3668dafef2f17e7d70e88870a71 (diff) | |
| download | libgit2-505f37b41a7d80c539a33d28aec947cd87bb1b6c.tar.gz | |
config: Only dereference value on success
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index f9bd205af..c85695f19 100644 --- a/src/config.c +++ b/src/config.c @@ -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; |
