r15098 - gnucash/trunk/src/gnome-utils - gnc_history_get_last() can return NULL.
David Hampton
hampton-gnucash at rainbolthampton.net
Thu Nov 9 10:12:45 EST 2006
On Thu, 2006-11-09 at 08:14 +0100, Andreas Köhler wrote:
> g_free can handle NULL pointers just fine, now we are double-checking
> again. There is even a bug about these checks in gtk+:
>
> http://bugzilla.gnome.org/show_bug.cgi?id=369666
>
> I do not suggest to fix all of them in the source, but I will whenever I
> am editing the surrounding code block anyway.
>
> Or is there some reason for these checks?
Because I come from a time and place when free() didn't check for
NULL. :-( Thanks for the education.
David
More information about the gnucash-devel
mailing list