X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/ea89660dc06ba1f1e919bd0d6564619831d64167..2d0dc9298e36bb9c010ede2c42db16e3ab00da79:/src/src/expand.c diff --git a/src/src/expand.c b/src/src/expand.c index de38e3acb..c7ebf9870 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -1797,10 +1797,10 @@ switch (vp->type) return var_buffer; case vtype_host_lookup: /* Lookup if not done so */ - if (sender_host_name == NULL && sender_host_address != NULL && - !host_lookup_failed && host_name_lookup() == OK) + if ( !sender_host_name && sender_host_address + && !host_lookup_failed && host_name_lookup() == OK) host_build_sender_fullhost(); - return (sender_host_name == NULL)? US"" : sender_host_name; + return sender_host_name ? sender_host_name : US""; case vtype_localpart: /* Get local part from address */ s = *((uschar **)(val));