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

Re: What should go into 1.5.7?



* Thomas Roessler wrote on Wed, Jan 26, 2005 at 01:26:15PM CET:
> On 2005-01-26 13:21:28 +0100, Ralf Wildenhues wrote:
> 
> > Well, my patch prints Context->pattern, while yours prints
> > Context.
> 
> ooooooops.

Sorry, Thomas, my fault, but please look at it again:

I don't know mutt source very well, but AFAICS, both
  Context
and
  Context->pattern
might be NULL (inferring from source context).

Regards,
Ralf

Against updated version:

--- status.c    2005-01-26 15:22:50.252301852 +0100
+++ status.c-changed    2005-01-26 13:35:17.340241414 +0100
@@ -266,7 +266,7 @@
       if (!optional)
       {
        snprintf (fmt, sizeof(fmt), "%%%ss", prefix);
-       snprintf (buf, buflen, fmt, NONULL (Context->pattern));
+       snprintf (buf, buflen, fmt, Context ? NONULL (Context->pattern));
       }
       else if (!Context || !Context->pattern)
        optional = 0;