Re: PQfinish(const PGconn *conn) question

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Boulat Khakimov <boulat@inet-interactif.com>
Cc: pgsql-hackers@postgresql.org
Date: 2001-03-09T17:50:27Z
Lists: pgsql-hackers
Boulat Khakimov <boulat@inet-interactif.com> writes:
> I'm wondering how safe it is to pass an uninitialized conn to
> PQfinish....

You can pass a NULL pointer to PQfinish safely, if that's what you
meant.  Passing a pointer to uninitialized memory seems like a bad
idea.

			regards, tom lane