<<< Date Index >>>     <<< Thread Index >>>

Re: mutt/2272: NUll pointer references



The following reply was made to PR mutt/2272; it has been noted by GNATS.

From: Thomas Roessler <roessler@xxxxxxxxxxxxxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: 
Subject: Re: mutt/2272: NUll pointer references
Date: Thu, 8 Jun 2006 13:39:08 +0200

 On 2006-06-08 13:29:51 +0200, fabrice.desclaux@xxxxxxxx wrote:
 
 > In crypt.c: line 595:
 >   if (!h)
 >   {
 >     for (i = 0; i < Context->vcount; i++)
 >     {
 >       .....
 >           if (Context->hdrs[Context->v2r[i]]->env->from)
 >          tmp = mutt_expand_aliases (h->env->from);
 >       .....
 > 
 
 This was meant to read as follows:
 
 RCS file: /cvs/mutt/mutt/crypt.c,v
 retrieving revision 3.33
 diff -u -r3.33 crypt.c
 --- crypt.c    16 Dec 2005 18:49:40 -0000      3.33
 +++ crypt.c    8 Jun 2006 11:37:16 -0000
 @@ -630,7 +630,7 @@
          fflush(fpout);
  
            if (Context->hdrs[Context->v2r[i]]->env->from)
 -          tmp = mutt_expand_aliases (h->env->from);
 +          tmp = mutt_expand_aliases 
(Context->hdrs[Context->v2r[i]]->env->from);
          else if (Context->hdrs[Context->v2r[i]]->env->sender)
            tmp = mutt_expand_aliases (Context->hdrs[Context->v2r[i]]
                                                      ->env->sender);
 
 
 -- 
 Thomas Roessler                              <roessler@xxxxxxxxxxxxxxxxxx>