From bfe261182f5e1714f03257970f4149d84dcdca09 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Thu, 8 Apr 2021 17:21:23 -0400 Subject: [PATCH] move code to shut up clang --- src/lib/util/pair_legacy.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib/util/pair_legacy.c b/src/lib/util/pair_legacy.c index 0bc6a4746a..b4ad7ee8f6 100644 --- a/src/lib/util/pair_legacy.c +++ b/src/lib/util/pair_legacy.c @@ -377,9 +377,6 @@ static ssize_t fr_pair_list_afrom_substr(TALLOC_CTX *ctx, fr_dict_attr_t const * * Allow grouping attributes. */ switch (da->type) { - fr_token_t quote; - char const *q; - case FR_TYPE_NON_LEAF: if (*p != '{') { fr_strerror_printf("Group list for %s MUST start with '{'", da->name); @@ -415,7 +412,10 @@ static ssize_t fr_pair_list_afrom_substr(TALLOC_CTX *ctx, fr_dict_attr_t const * p++; break; - case FR_TYPE_LEAF: + case FR_TYPE_LEAF: { + fr_token_t quote; + char const *q; + /* * Get the RHS thing. */ @@ -503,6 +503,7 @@ static ssize_t fr_pair_list_afrom_substr(TALLOC_CTX *ctx, fr_dict_attr_t const * goto error; } } + } break; } next: -- 2.47.2