RE: g_log () with NULL arg crashes on Win32



Hi,

On Mon, 2004-05-24 at 09:18, martyn 2 russell bt com wrote:

> >     printf ("variable has value:'%s'", test ? test : "(null)");
> > and
> >     g_message ("variable has value:'%s'", test ? test : "(null)");
> > 
> 
> Although I agree with what you are saying, it is quite a convenience to
> see that a variable is set to NULL.  To add the conditional expression
> can be easily done, but it is a lot of extra work.
> 
> If this is not a problem on Linux, it worked before on Windows and
> printf supports this feature, I would say this is a bug.

	This feature is simply not something which is portable. 

	printf ("%s", NULL) was one of the main sources of crashes when getting
GNOME going on Solaris.

Cheers,
Mark.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]