From 0f7c231cc2f5753ed57005f50d7805b82df257f8 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sun, 5 Jun 2022 19:28:35 +0200 Subject: [PATCH] fix bogus complaints about missing Store/Account references ... when the reference is simply invalid (we already get a complaint about that). --- src/config.c | 1 + src/drv_imap.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/config.c b/src/config.c index cec2be8..eaa2ba0 100644 --- a/src/config.c +++ b/src/config.c @@ -505,6 +505,7 @@ load_config( const char *where ) goto stpcom; } } + channel->stores[fn] = (void *)~0; error( "%s:%d: unknown store '%s'\n", cfile.file, cfile.line, cfile.val + 1 ); cfile.err = 1; diff --git a/src/drv_imap.c b/src/drv_imap.c index 31beb59..5a41521 100644 --- a/src/drv_imap.c +++ b/src/drv_imap.c @@ -3679,6 +3679,7 @@ imap_parse_store( conffile_t *cfg, store_conf_t **storep ) for (srv = servers; srv; srv = srv->next) if (srv->name && !strcmp( srv->name, cfg->val )) goto gotsrv; + store->server = (void *)~0; error( "%s:%d: unknown IMAP account '%s'\n", cfg->file, cfg->line, cfg->val ); cfg->err = 1; continue;