Re: [gnome-db] gda_row_get_number
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: Neil Zanella <nzanella gmail com>
- Cc: GNOME-DB List <gnome-db-list gnome org>
- Subject: Re: [gnome-db] gda_row_get_number
- Date: Sat, 15 Jan 2005 18:19:43 +0100
On Mon, 2004-11-29 at 15:23 -0700, Neil Zanella wrote:
> Hello,
>
> I thought the API should allow the user to call gda_row_get_number on
> a null pointer,
> returning -1, and without complaining with the following assertion:
>
> CRITICAL **: file gda-row.c: line 180 (gda_row_get_number): assertion
> `row != NULL' failed
>
> Any thoughts on this?
>
well, for all G* APIs, the g_return_*if_fail macro is used to detect
incorrect arguments, and here, passing a NULL pointer to
gda_row_get_number is clearly a wrong argument
--
Rodrigo Moya <rodrigo gnome-db org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]