Commit fee6fd7f authored by Michael Meskes's avatar Michael Meskes

Fix segfault in connect in informix mode.

parent 91d60637
......@@ -1554,6 +1554,10 @@ Fri Jul 4 13:51:11 CEST 2003
Mon Jul 7 14:13:43 CEST 2003
- Made sure "char *" is handled differently than "char []".
Tue Jul 8 09:04:31 CEST 2003
- Fixed segfault in ECPGconnect in Informix mode.
- Set ecpg version to 3.0.0
- Set ecpg library to 4.0.0
- Set pgtypes library to 1.0.0
......
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.10 2003/07/01 12:40:51 meskes Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/connect.c,v 1.11 2003/07/08 07:13:48 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
......@@ -324,8 +324,8 @@ ECPGconnect(int lineno, int c, const char *name, const char *user, const char *p
envname = getenv("PG_DBPATH");
if (envname)
{
free(dbname);
dbname = envname;
ECPGfree(dbname);
dbname = strdup(envname);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment