From: Alan T. DeKok Date: Thu, 19 May 2022 18:28:03 +0000 (-0400) Subject: shut up clang scan X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aaeff369e14c6e87f18fa899d320846b5a6e73f;p=thirdparty%2Ffreeradius-server.git shut up clang scan --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index b68188e8735..1aae182984b 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -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. */