]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
try to quiet clang scan
authorAlan T. DeKok <aland@freeradius.org>
Mon, 22 May 2023 21:06:41 +0000 (17:06 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 22 May 2023 21:06:41 +0000 (17:06 -0400)
src/lib/util/pair_tests.c

index c8fb7538896c98fed834f94ae78fdfd7cd2de3ce..3448ca2e6b93218e10d98e60e5b3ffd10c46e11e 100644 (file)
@@ -528,6 +528,7 @@ static void test_fr_pair_update_by_da_parent(void)
        fr_pair_t *vp, *group;
 
        TEST_CHECK((group = fr_pair_afrom_da(autofree, fr_dict_attr_test_group)) != NULL);
+       if (!group) return NULL; /* quiet clang scan */
 
        TEST_CASE("Update Add using fr_pair_prepend_by_da()");
        TEST_CHECK(fr_pair_update_by_da_parent(group, &vp, fr_dict_attr_test_uint32) == 0); /* attribute doesn't exist in this group */