From 7e4393a29b7192b9e0b993652dbba1a8e69dd1bf Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sun, 9 Feb 2020 02:18:37 +0000 Subject: [PATCH] smtp: Tidy up following recent changes to maintain coding style --- lib/smtp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/smtp.c b/lib/smtp.c index a26d901aac898d..9f5e25d2d0b7a1 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -566,10 +566,7 @@ static CURLcode smtp_perform_mail(struct connectdata *conn) bool utf8 = false; /* Calculate the FROM parameter */ - if(!data->set.str[STRING_MAIL_FROM]) - /* Null reverse-path, RFC-5321, sect. 3.6.3 */ - from = strdup("<>"); - else { + if(data->set.str[STRING_MAIL_FROM]) { char *address = NULL; struct hostname host = { NULL, NULL, NULL, NULL }; @@ -598,6 +595,9 @@ static CURLcode smtp_perform_mail(struct connectdata *conn) free(address); } + else + /* Null reverse-path, RFC-5321, sect. 3.6.3 */ + from = strdup("<>"); if(!from) return CURLE_OUT_OF_MEMORY;