On Fri, 2006-05-19 at 19:53 +0200, Paul J Stevens wrote: > Aaron Stone wrote: > > Nevermind, there was a clue to find where the issue is coming from. > > Lars, try this in modules/sortsieve.c, as the trace in sort_getheader: > > > > trace(TRACE_INFO, "%s, %s: Getting header [%s] returning value [%s]", > > __FILE__, __func__, header, bodylist[0] ? bodylist[0] : "(null)" ); > > > > I wonder if there's a more portable way to handle this in trace? > > I've tried doing that by using g_vsnprintf, and that did work for /some/ > cases, but apparently not for all. Perhaps we need to do a separate > looping over va_args to check for NULL elements.
I might also add that free(NULL) is required to be legal. Solaris apparently provides a compatibility library for null values: http://technopark02.blogspot.com/2006/04/solaris-null-pointer-bugs-usrlib00so1.html I'm very amused at Sun's lib/[EMAIL PROTECTED] hackaround. Aaron
