]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Initialise all fields
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 Feb 2021 20:25:28 +0000 (20:25 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 25 Feb 2021 20:25:28 +0000 (20:25 +0000)
src/lib/unlang/tmpl.c

index 36323aaa777cfc19261fa90f4edf48d66bfae8aa..c45fe0c908c7fd74b5223cd7f38db18104cbe830 100644 (file)
@@ -138,8 +138,10 @@ int unlang_tmpl_push(TALLOC_CTX *ctx, fr_value_box_t **out, request_t *request,
        };
 
        MEM(ut = talloc(stack, unlang_tmpl_t));
-       ut->self = tmpl_instruction;
-       ut->tmpl = tmpl;
+       *ut = (unlang_tmpl_t){
+               .self = tmpl_instruction,
+               .tmpl = tmpl
+       }
 
        /*
         *      Push a new tmpl frame onto the stack