On Sun, Aug 15, 1999 at 10:55:51PM -0400, Russell Nelson wrote:
> 
> Can you say "unchecked mallocs"?  I would say at very least that you
> need to check the trans at the beginning of xaccInitTransaction:
> 
>   if (!trans) return;
> 
> This is to say nothing about calls to strdup.

One of the techniques that has helped Gnumeric (the gnome spreadsheet)
quite a bit has been the liberal sprinkling of

g_return_if_fail
    or
g_return_val_if_fail

as preconditions on all non static functions.
These routines are the glib versions of
    if (!test_expr) { log_message; return }

It would probably help ameliorate problems when they crop up by producing
messages rather than cores.

----- %< -------------------------------------------- >% ------
The GnuCash / X-Accountant Mailing List
To unsubscribe, send mail to [EMAIL PROTECTED] and
put "unsubscribe gnucash-devel [EMAIL PROTECTED]" in the body

Reply via email to