Re: Gtk-CRITICAL error

On Sat, 31 Jul 1999, Havoc Pennington wrote:

> On Sat, 31 Jul 1999, Sergio A. Kessler wrote:
> > 
> > Someone posted a patch to also print the name of the program in this 
> > cases, *PLEASE*, apply it.
> > 
> I already can't find it, but I do remember seeing it. In any case this
> patch has to go via before it can be applied;
> most likely the GLib maintainers won't even see it if it went by on this
> list (and I think it did...)

g_get_prgname sometimes returns NULL so you'll need the following
line in the patch.

     prgname = g_get_prgname ();
+    if (prgname == NULL) prgname = "unknown";


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