From: Alan T. DeKok Date: Thu, 10 Oct 2024 14:44:15 +0000 (-0400) Subject: more "quiet clang scan" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9bdc6b79b09017c832d9c02e769376cc8bfafc4;p=thirdparty%2Ffreeradius-server.git more "quiet clang scan" --- diff --git a/src/bin/radclient-ng.c b/src/bin/radclient-ng.c index c521e835e83..36720b6753d 100644 --- a/src/bin/radclient-ng.c +++ b/src/bin/radclient-ng.c @@ -1342,7 +1342,13 @@ int main(int argc, char **argv) fr_exit_now(EXIT_FAILURE); } #endif - fr_assert(autofree != NULL); + +#ifdef STATIC_ANALYZER + /* + * clang scan thinks that fr_fault_setup() will set autofree=NULL. + */ + if (!autofree) fr_exit_now(EXIT_FAILURE); +#endif talloc_set_log_stderr();