libgit2/libgit2 — pull request #1019 by wking (2012-10-25 17:16:05+00:00)
Title: config: avoid segfault on invalid name in get_string_at_file().

If the requested name is invalid, you get:

* normalize_name() returns -1
* config_get() returns -1 (when called as file->get() in get_string_at_file())
* entry is NULL, but res != GIT_ENOTFOUND

In this case, you *don't* want to try and dereference entry.

Signed-off-by: W. Trevor King