From: Arran Cudbard-Bell Date: Thu, 25 Feb 2021 20:25:28 +0000 (+0000) Subject: Initialise all fields X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d87f7a2b55a7edb4fac9865618558f3a675fb85;p=thirdparty%2Ffreeradius-server.git Initialise all fields --- diff --git a/src/lib/unlang/tmpl.c b/src/lib/unlang/tmpl.c index 36323aaa777..c45fe0c908c 100644 --- a/src/lib/unlang/tmpl.c +++ b/src/lib/unlang/tmpl.c @@ -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