]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fr_assert does noting on NDEBUG builds
authorNick Porter <nick@portercomputing.co.uk>
Wed, 4 Sep 2024 09:07:33 +0000 (10:07 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 4 Sep 2024 09:07:33 +0000 (10:07 +0100)
So clang scan thinks ref can be NULL

src/lib/unlang/compile.c

index 090cdc591d8fbf10cb53ed003945a54ec35e42f0..aaf27e09fcd89dae24858efefbd599aab8efc84c 100644 (file)
@@ -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;
        }