From: Jeff King Date: Fri, 24 Feb 2017 21:08:16 +0000 (-0500) Subject: parse_hide_refs_config: tell parse_config_key we don't want a subsection X-Git-Tag: v2.13.0-rc0~147^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad8c7cdadd96c66d0adf894250c8f4dd77bb2bee;p=thirdparty%2Fgit.git parse_hide_refs_config: tell parse_config_key we don't want a subsection This lets us avoid declaring some otherwise useless variables. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/refs.c b/refs.c index 92f800e9cd..cb81245579 100644 --- a/refs.c +++ b/refs.c @@ -1029,11 +1029,10 @@ static struct string_list *hide_refs; int parse_hide_refs_config(const char *var, const char *value, const char *section) { - const char *subsection, *key; - int subsection_len; + const char *key; if (!strcmp("transfer.hiderefs", var) || - (!parse_config_key(var, section, &subsection, &subsection_len, &key) - && !subsection && !strcmp(key, "hiderefs"))) { + (!parse_config_key(var, section, NULL, NULL, &key) && + !strcmp(key, "hiderefs"))) { char *ref; int len;