Re: [gnome-db] gda_row_get_number



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]