summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-05-10 20:40:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-10 20:40:29 (GMT)
commit934908ae5bcd7b9944d925f73e05c60b2687c8b7 (patch)
tree84f7eb93559ef20fbdfad8eef00e1274fcce4bb9 /config.c
parent54c2af5aa3471e3e6de934d411d1bce74eb25960 (diff)
parent99dab16863c2eca584a84bdde748b9c113717603 (diff)
downloadgit-934908ae5bcd7b9944d925f73e05c60b2687c8b7.zip
git-934908ae5bcd7b9944d925f73e05c60b2687c8b7.tar.gz
git-934908ae5bcd7b9944d925f73e05c60b2687c8b7.tar.bz2
Merge branch 'sb/misc-cleanups'
* sb/misc-cleanups: submodule-config: don't shadow `cache` config.c: drop local variable
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/config.c b/config.c
index 10b5c95..262d8d7 100644
--- a/config.c
+++ b/config.c
@@ -1309,14 +1309,11 @@ static struct config_set_element *configset_find_element(struct config_set *cs,
struct config_set_element k;
struct config_set_element *found_entry;
char *normalized_key;
- int ret;
/*
* `key` may come from the user, so normalize it before using it
* for querying entries from the hashmap.
*/
- ret = git_config_parse_key(key, &normalized_key, NULL);
-
- if (ret)
+ if (git_config_parse_key(key, &normalized_key, NULL))
return NULL;
hashmap_entry_init(&k, strhash(normalized_key));