Re: Crash processing g_object_new arguments
- From: Lars Wirzenius <liw liw fi>
- To: gtk-app-devel-list gnome org
- Subject: Re: Crash processing g_object_new arguments
- Date: Mon, 09 Nov 2009 11:32:23 +0200
On Mon, 2009-11-09 at 09:32 +0100, Nicola Fontana wrote:
Change 0 to NULL: on 64 bit platforms 0 != NULL, hence the property list
is not terminated.
Even better, in C, is to use (void *)0 or (void *)NULL, since in C it is
acceptable for NULL to be #defined as 0, even though that tends to make
people angry when they encounter situations like this. (I don't know
enough C++ to say what the situation is there.)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]