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

[PATCH] Use NULL in vararg



Use NULL as null pointer in status_format_str in order to be 64bit
clean.  (Strictly ANSI-C speaking, one would have to do (void*)0
or (void*)NULL here, but in practice, this is sufficient).

BTW, would you accept a patch that changes all null pointers to use
NULL?

Regards,
Ralf

Index: status.c
===================================================================
RCS file: /home/roessler/cvs/mutt/status.c,v
retrieving revision 3.1
diff -u -r3.1 status.c
--- status.c    11 Dec 2002 11:19:40 -0000      3.1
+++ status.c    8 Nov 2004 13:20:10 -0000
@@ -266,7 +266,7 @@
       if (!optional)
       {
        snprintf (fmt, sizeof(fmt), "%%%ss", prefix);
-       snprintf (buf, buflen, fmt, Context ? Context->pattern : 0);
+       snprintf (buf, buflen, fmt, Context ? Context->pattern : NULL);
       }
       else if (!Context || !Context->pattern)
        optional = 0;