RE: g_log () with NULL arg crashes on Win32
- From: <martyn 2 russell bt com>
- To: <mark skynet ie>
- Cc: gtk-devel-list gnome org, mortenw gnome org
- Subject: RE: g_log () with NULL arg crashes on Win32
- Date: Mon, 24 May 2004 10:31:10 +0100
> > 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
> GNOME going on Solaris.
We have written a similar library to Glib here, and have had the same
problem with printf on Solaris in the past; as a result, we had to
provide our own implementation of printf.
Considering Glib strives to work across platforms, wouldn't this be the
best way for g_log to pride a consistent solution?
] [Thread Prev