diff --git a/lib/filterx/expr-template.c b/lib/filterx/expr-template.c index b507d254198..ea0f572652c 100644 --- a/lib/filterx/expr-template.c +++ b/lib/filterx/expr-template.c @@ -45,7 +45,7 @@ _eval(FilterXExpr *s) /* FIXME/2: let's make this handle literal and trivial templates */ log_template_format_value_and_type_with_context(self->template, context->msgs, context->num_msg, - context->template_eval_options, value, &t); + &context->template_eval_options, value, &t); /* NOTE: we borrow value->str here which is stored in a scratch buffer * that should be valid as long as we are traversing the filter diff --git a/lib/filterx/filterx-eval.c b/lib/filterx/filterx-eval.c index 4f7ed9faf2e..9523361540d 100644 --- a/lib/filterx/filterx-eval.c +++ b/lib/filterx/filterx-eval.c @@ -217,7 +217,7 @@ filterx_eval_init_context(FilterXEvalContext *context, FilterXEvalContext *previ filterx_scope_make_writable(&scope); memset(context, 0, sizeof(*context)); - context->template_eval_options = &DEFAULT_TEMPLATE_EVAL_OPTIONS; + context->template_eval_options = DEFAULT_TEMPLATE_EVAL_OPTIONS; context->scope = scope; if (previous_context) diff --git a/lib/filterx/filterx-eval.h b/lib/filterx/filterx-eval.h index f0d2a9f9c25..68364fe4697 100644 --- a/lib/filterx/filterx-eval.h +++ b/lib/filterx/filterx-eval.h @@ -41,7 +41,7 @@ struct _FilterXEvalContext gint num_msg; FilterXScope *scope; FilterXError error; - LogTemplateEvalOptions *template_eval_options; + LogTemplateEvalOptions template_eval_options; GPtrArray *weak_refs; FilterXEvalContext *previous_context; };