]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
shut up clang scan
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 May 2022 18:28:03 +0000 (14:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 19 May 2022 18:28:03 +0000 (14:28 -0400)
src/lib/unlang/xlat_tokenize.c

index b68188e87355e726f6d40cadf9d30dbc7ceb81a1..1aae182984b16c034e274c5fabb5fb82fb5d0680 100644 (file)
@@ -941,6 +941,10 @@ static int xlat_tokenize_string(xlat_exp_head_t *head,
                        xlat_exp_set_type(node, XLAT_ONE_LETTER);
                        xlat_exp_set_name_buffer_shallow(node, str);
 
+#ifdef __clang_analyzer__
+                       if (!node->fmt) goto error;
+#endif
+
                        /*
                         *      %% is pure.  Everything else is not.
                         */