]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
try to satisfy clang scan, too
authorAlan T. DeKok <aland@freeradius.org>
Sat, 11 May 2024 00:16:25 +0000 (20:16 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 11 May 2024 00:16:25 +0000 (20:16 -0400)
src/lib/server/module.c

index 3b1a5a8a3857fe325a8468f269df29aae3f1d63c..4182f8650a6e4551f10e2036a1f8a9e6fe940fb4 100644 (file)
@@ -421,7 +421,7 @@ static void mlg_data_del(module_instance_t *mi)
        mlg_module_instance_t   *mlg_mi = (mlg_module_instance_t *)talloc_get_type_abort(mi, module_instance_t);
 
        if (!fr_heap_entry_inserted(mlg_mi->inst_idx)) return;
-       
+
        if (fr_heap_extract(&mlg_index, mi) == 0) return;
 
        fr_assert(0);
@@ -683,6 +683,11 @@ static int8_t module_instance_name_cmp(void const *one, void const *two)
        int a_depth = 0, b_depth = 0;
        int ret;
 
+#ifdef STATIC_ANALYZER
+       if (!fr_cond_assert(a)) return +1;
+       if (!fr_cond_assert(b)) return -1;
+#endif
+
        /*
         *      Sort by depth, so for tree walking we start
         *      at the shallowest node, and finish with