Question: gda-clnt/gda-recordset.c
- From: Stephan Heinze <Stephan Heinze xcom de>
- To: gnome-db-list gnome org
- Subject: Question: gda-clnt/gda-recordset.c
- Date: Fri, 26 Nov 1999 16:56:05 +0100
Hi all,
am I wrong or should there be a check for NULL pointer in
gda-clnt/gda-recordset.c like
void
gda_recordset_close(Gda_Recordset* rs)
{
if (NULL==rs)
{
g_error("invalid Gda_Recordset* in gda_recordset_close\n");
return;
}
[snip code]
}
in every function like this one before accessing the stuctures member?
IMHO the check rs->open would dump a core if rs is NULL.
kind regards
stephan
-------------------------------------------------------------------
"Life is what happens to you while you're busy making other plans."
John Lennon
-------------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]