]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move code to shut up clang
authorAlan T. DeKok <aland@freeradius.org>
Thu, 8 Apr 2021 21:21:23 +0000 (17:21 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 8 Apr 2021 21:21:37 +0000 (17:21 -0400)
src/lib/util/pair_legacy.c

index 0bc6a4746a57c5b3264d93cef4f5c54a9a37366e..b4ad7ee8f6770f372a4137c83f1662579351763b 100644 (file)
@@ -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: