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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Feb 24, 2017 at 16:08 UTC ad8c7cdadd96c66d0adf894250c8f4dd77bb2bee
1 file changed +3 -4
refs.c
+3 -4
@@ -1029,11 +1029,10 @@ static struct string_list *hide_refs;
1029
1030 int parse_hide_refs_config(const char *var, const char *value, const char *section)
1031 {
1032 - const char *subsection, *key;
1033 - int subsection_len;
1032 + const char *key;
1033 if (!strcmp("transfer.hiderefs", var) ||
1035 - (!parse_config_key(var, section, &subsection, &subsection_len, &key)
1036 - && !subsection && !strcmp(key, "hiderefs"))) {
1034 + (!parse_config_key(var, section, NULL, NULL, &key) &&
1035 + !strcmp(key, "hiderefs"))) {
1036 char *ref;
1037 int len;
1038