From: Marc G. Fournier Date: Wed, 18 Feb 1998 01:30:42 +0000 (+0000) Subject: I'm getting a SEGV error when testing ecpg using the perftest,or X-Git-Tag: REL6_3~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cdfac31335ed2d108e657796bcd32caa04ae27e8;p=postgresql I'm getting a SEGV error when testing ecpg using the perftest,or any other, example program. I have tracked this down to a call to PQfinish() in ECPGfinish() that occurs before any connection is established. From: Keith Parks --- diff --git a/src/interfaces/ecpg/lib/ecpglib.c b/src/interfaces/ecpg/lib/ecpglib.c index 80e9b0fd9c..9f5911c477 100644 --- a/src/interfaces/ecpg/lib/ecpglib.c +++ b/src/interfaces/ecpg/lib/ecpglib.c @@ -24,7 +24,7 @@ #include #include -static PGconn *simple_connection; +static PGconn *simple_connection = NULL; static int simple_debug = 0; static FILE *debugstream = NULL; static int committed = true;