]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
initialize variable
authorAlan T. DeKok <aland@freeradius.org>
Sat, 7 Sep 2024 11:51:54 +0000 (07:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 7 Sep 2024 11:51:54 +0000 (07:51 -0400)
src/lib/unlang/compile.c

index 4a78d3ee81d402e711a94d6f66c21a94bb3d9b1e..70d15b475f9fead3349697193ac608e92e4b6bd9 100644 (file)
@@ -3180,6 +3180,7 @@ static unlang_t *compile_foreach(unlang_t *parent, unlang_compile_t *unlang_ctx,
 
        ssize_t                 slen;
        tmpl_t                  *vpt;
+       fr_dict_attr_t const    *da = NULL;
 
        tmpl_rules_t            t_rules;
        unlang_compile_t        unlang_ctx2;
@@ -3310,7 +3311,8 @@ static unlang_t *compile_foreach(unlang_t *parent, unlang_compile_t *unlang_ctx,
 
        if (type_name) {
                unlang_variable_t *var;
-               fr_dict_attr_t const *da = tmpl_attr_tail_da(vpt);
+
+               da = tmpl_attr_tail_da(vpt);
 
                type = fr_table_value_by_str(fr_type_table, type_name, FR_TYPE_VOID);
                fr_assert(type != FR_TYPE_VOID);