From a10d8688319fdf45cc582e9101236fed5421727a Mon Sep 17 00:00:00 2001 From: Nick Porter Date: Wed, 4 Sep 2024 10:07:33 +0100 Subject: [PATCH] fr_assert does noting on NDEBUG builds So clang scan thinks ref can be NULL --- src/lib/unlang/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/unlang/compile.c b/src/lib/unlang/compile.c index 090cdc591d..aaf27e09fc 100644 --- a/src/lib/unlang/compile.c +++ b/src/lib/unlang/compile.c @@ -1669,7 +1669,7 @@ static int define_local_variable(CONF_ITEM *ci, unlang_variable_t *var, tmpl_rul * Copy the children over. */ if (fr_type_is_structural(type) && (type != FR_TYPE_GROUP)) { - fr_assert(ref != NULL); + fr_fatal_assert(ref != NULL); if (fr_dict_attr_acopy_local(da, ref) < 0) goto fail; } -- 2.47.2