Segfault & patch for libxfcegui4

Brian J. Tarricone bjt23 at cornell.edu
Wed Aug 22 17:42:37 CEST 2007


Jasper Huijsmans wrote:

> If you want an explicit check, I don't think you can rely on g_return_if_fail.
> 
> I'm not sure if this is correct, but I thought g_return_* macros
> should only really be used for debugging purposes, because they may be
> defined as no-ops in certain configurations.

Oof, I didn't know that.  Do people really build apps with 
G_DISABLE_CHECKS?  If so, a lot of code could break.  I guess the 
g_return_* stuff is really meant to catch programmer error?  I like to 
use it for sanity checks so it'll print out a useful warning.

Lame.

	-brian



More information about the Xfce4-dev mailing list