oops, small regresion
authorPierre Habouzit <madcoder@debian.org>
Fri, 1 Dec 2006 15:25:49 +0000 (16:25 +0100)
committerPierre Habouzit <madcoder@debian.org>
Fri, 1 Dec 2006 15:25:49 +0000 (16:25 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
send.c

diff --git a/send.c b/send.c
index 82579d5..3b51b00 100644 (file)
--- 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) {