From: Alan T. DeKok Date: Tue, 18 Feb 2025 00:29:26 +0000 (-0500) Subject: quiet coverity. CID #1642987 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5732d1010f6bc37877f0f0f9b45965fe7ef5f574;p=thirdparty%2Ffreeradius-server.git quiet coverity. CID #1642987 --- diff --git a/src/lib/util/dict_tokenize.c b/src/lib/util/dict_tokenize.c index f7b1f3e90c2..e261f5668fb 100644 --- a/src/lib/util/dict_tokenize.c +++ b/src/lib/util/dict_tokenize.c @@ -1240,6 +1240,10 @@ static int dict_read_process_attribute(dict_tokenize_ctx_t *dctx, char **argv, i return -1; } +#ifdef STATIC_ANALYZER + if (!dctx->dict) return -1; +#endif + /* * A non-relative ATTRIBUTE definition means that it is * in the context of the previous BEGIN-FOO. So we @@ -1338,10 +1342,6 @@ static int dict_read_process_attribute(dict_tokenize_ctx_t *dctx, char **argv, i } #endif -#ifdef STATIC_ANALYZER - if (!dctx->dict) return -1; -#endif - /* * Set the attribute name */