isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit b148fd9e446e30b889764a4d0d96098842684270
parent c83330ffe8af72b3dea381c0e43562d572d0ad85
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Tue,  4 Aug 2020 09:08:17 +0200

de-duplicate exit paths of imap_alloc_store()

Diffstat:
Msrc/drv_imap.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/drv_imap.c b/src/drv_imap.c @@ -1805,8 +1805,7 @@ imap_alloc_store( store_conf_t *conf, const char *label ) for (ctxp = &unowned; (ctx = (imap_store_t *)*ctxp); ctxp = &ctx->gen.next) if (ctx->state == SST_GOOD && ctx->gen.conf == conf) { *ctxp = ctx->gen.next; - ctx->label = label; - return &ctx->gen; + goto gotstore; } /* Then try to recycle a server connection. */ @@ -1835,6 +1834,7 @@ imap_alloc_store( store_conf_t *conf, const char *label ) gotsrv: ctx->gen.conf = conf; + gotstore: ctx->label = label; return &ctx->gen; }