]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-mail: Fixed to 91fdb25b5
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 6 Jun 2016 14:10:12 +0000 (17:10 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 12 Jun 2017 14:04:22 +0000 (17:04 +0300)
Caused by my manual edits to avoid the -Wstrict-bool warnings.

src/lib-mail/message-address.c

index 4a6336216969d2059e6abecbe93fb23d7c748fc8..015cf9044e17de20b21ac0b7d8f54d7269d97fee 100644 (file)
@@ -250,7 +250,7 @@ static int parse_mailbox(struct message_address_parser_context *ctx)
                ctx->parser.data = start;
                ret = parse_addr_spec(ctx);
                if (ctx->addr.invalid_syntax && ctx->addr.name == NULL &&
-                   ctx->addr.mailbox == NULL && ctx->addr.domain == NULL) {
+                   ctx->addr.mailbox != NULL && ctx->addr.domain == NULL) {
                        ctx->addr.name = ctx->addr.mailbox;
                        ctx->addr.mailbox = NULL;
                }