]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
change scope of variable
authorAlan T. DeKok <aland@freeradius.org>
Sat, 27 Jan 2024 20:58:22 +0000 (15:58 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 27 Jan 2024 20:58:22 +0000 (15:58 -0500)
src/lib/util/dict_fixup.c

index 048e484e888f09371fa66f2648350743126d8239..472aaa9dae5bcbd1f6d5999bbd49d7f14b7a65be 100644 (file)
@@ -230,6 +230,7 @@ static fr_dict_attr_t const *dict_find_or_load_reference(fr_dict_t **dict_def, c
        fr_dict_attr_t const    *da;
        char const              *name;
        ssize_t                 slen;
+       char                    protocol[64];
 
        /*
         *      Ref to attribute in existing dictionary.  The dictionary MUST be loaded by $INCLUDEs.
@@ -254,7 +255,6 @@ static fr_dict_attr_t const *dict_find_or_load_reference(fr_dict_t **dict_def, c
        if (slen <= 0) {
                char *p;
                char const *q;
-               char protocol[64];
 
                /*
                 *      The filenames are lowercase.  The names in the dictionaries are case-insensitive.  So