X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=send.c;h=3b51b001f24e5d0dbd63be886080b356f03df4d6;hp=82579d51aa58ffc1adca6608c96c36c4099c9745;hb=33d7570d66fa131d801880a7786c8303cd867aaf;hpb=f2ff91d8b7627e22af9715d384b6f9e9e802a39e diff --git a/send.c b/send.c index 82579d5..3b51b00 100644 --- a/send.c +++ b/send.c @@ -910,7 +910,7 @@ void mutt_set_followup_to (ENVELOPE * e) from field */ static address_t *set_reverse_name (ENVELOPE * env) { - address_t *tmp; + address_t *tmp = NULL; for (tmp = env->to; tmp; tmp = tmp->next) { if (mutt_addr_is_user(tmp)) @@ -924,6 +924,8 @@ static address_t *set_reverse_name (ENVELOPE * env) if (!mutt_addr_is_user(env->from)) return NULL; + tmp = env->from; + found: tmp = address_dup(tmp); if (!option(OPTREVREAL) || !tmp->personal) {