diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2014-01-18 14:48:59 -0800 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2014-01-18 14:48:59 -0800 |
commit | b97e55f2f16ea91f2e1c4e4a7e35af9b5260ca78 (patch) | |
tree | 56ec1895b05e3bf97ea7f45cff47962e4fa067cb /src | |
parent | fed98153caa0ea892dd50d66d17c321a22818b6d (diff) | |
parent | c24130e06896e9838a05301079bdb8f09912e546 (diff) | |
download | libgit2-b97e55f2f16ea91f2e1c4e4a7e35af9b5260ca78.tar.gz |
Merge pull request #2059 from linquize/git_config_get_crash
Fix segfault when calling git_config_get_* functions when a config fails to load
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index 8447608cd..fa1dd8182 100644 --- a/src/config.c +++ b/src/config.c @@ -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; |