From: Marco Bettini Date: Fri, 25 Jul 2025 12:52:56 +0000 (+0000) Subject: fts: fts_parser_script_try_init() - Initialize filename X-Git-Tag: 2.4.2~642 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c8a3b453c9ddc55498ed4a4fc5ffe79fab46723;p=thirdparty%2Fdovecot%2Fcore.git fts: fts_parser_script_try_init() - Initialize filename Found by clang scan-build static analysis. --- diff --git a/src/plugins/fts/fts-parser-script.c b/src/plugins/fts/fts-parser-script.c index d05c1b823e..072312c8b7 100644 --- a/src/plugins/fts/fts-parser-script.c +++ b/src/plugins/fts/fts-parser-script.c @@ -221,7 +221,8 @@ fts_parser_script_try_init(struct fts_parser_context *parser_context) int fd; if (!get_cd_filename(parser_context->content_disposition, &filename)) - (void)get_ct_filename(parser_context->content_type_params, &filename); + if (!get_ct_filename(parser_context->content_type_params, &filename)) + filename = NULL; if (!script_support_content(parser_context, filename)) return NULL;