changeset 22160:79a84a2282ef

lib-mail: Fixed to 91fdb25b5 Caused by my manual edits to avoid the -Wstrict-bool warnings.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 06 Jun 2016 17:10:12 +0300
parents 4d0360081722
children f9c89c5172a5
files src/lib-mail/message-address.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-mail/message-address.c	Sun Jun 05 15:48:20 2016 +0200
+++ b/src/lib-mail/message-address.c	Mon Jun 06 17:10:12 2016 +0300
@@ -250,7 +250,7 @@
 		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;
 		}