From cbaa98835c5c088ab23a2096ae2d3a6e78467bda Mon Sep 17 00:00:00 2001 From: Marc G. Fournier Date: Thu, 17 Apr 1997 20:39:31 +0000 Subject: From: Raymond Toy Subject: [PATCHES] 970417: some large object patches Two patches here, made against 970417. Both have to do with large objects: 1. lobjfuncs was not initialized in PQconnectdb. This causes failure later if large objects are used. (Someone already caught this error in PQsetdb.) 2. Postgres functions lo_import and lo_export sometimes produce garbage for the file names because the filename strings aren't always terminated by \0. (VARDATA isn't necessarily null terminated.) --- src/interfaces/libpq/fe-connect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/interfaces') diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index d1ebdb62c1e..5fce9f27575 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.30 1997/04/16 06:29:19 vadim Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.31 1997/04/17 20:39:23 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -196,6 +196,7 @@ PQconnectdb(const char *conninfo) * Setup the conn structure * ---------- */ + conn->lobjfuncs = (PGlobjfuncs *) NULL; conn->Pfout = NULL; conn->Pfin = NULL; conn->Pfdebug = NULL; -- cgit v1.2.3