From: Timo Sirainen Date: Wed, 19 Mar 2025 10:02:04 +0000 (+0200) Subject: lib-settings: Skip applying groups early if there are no group includes X-Git-Tag: 2.4.2~887 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60a3a355b3e9bc58d1ea1e68a7b08ff2c8b92758;p=thirdparty%2Fdovecot%2Fcore.git lib-settings: Skip applying groups early if there are no group includes --- diff --git a/src/lib-settings/settings.c b/src/lib-settings/settings.c index 09a69cfd12..96e348b8fe 100644 --- a/src/lib-settings/settings.c +++ b/src/lib-settings/settings.c @@ -1206,6 +1206,9 @@ settings_apply_groups(struct settings_apply_ctx *ctx, .type = LOG_TYPE_DEBUG, }; + if (array_is_empty(&ctx->include_groups)) + return 0; + /* All group filters are at the end. When we see a non-group filter, we can stop. */ int ret = 0;