]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Add asserts to make static analyzer happy
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 26 May 2025 07:19:38 +0000 (10:19 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 30 May 2025 10:16:01 +0000 (10:16 +0000)
src/config/config-parser.c

index 5f5c514237293104dc377ca8f4f3a4cda992df41..b7ddab89191cb4533de564cf2d4746f42747be68 100644 (file)
@@ -785,6 +785,7 @@ config_apply_exact_line(struct config_parser_context *ctx,
                                        p_strconcat(ctx->pool, "\n", inline_value, NULL);
                                break;
                        }
+                       i_assert(line != NULL);
                        if (config_apply_file(ctx, line, value,
                                        &l->settings[config_key->define_idx].str) < 0)
                                return -1;