1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-29 13:56:47 +03:00

Fix possible core dump from pgbench -d option. Julius Stroffek

This commit is contained in:
Tom Lane 2007-08-22 23:03:33 +00:00
parent c40f60db3f
commit 59e4a6941f

View File

@ -1,5 +1,5 @@
/* /*
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.58.2.1 2007/01/10 01:20:10 ishii Exp $ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.58.2.2 2007/08/22 23:03:33 tgl Exp $
* *
* pgbench: a simple benchmark program for PostgreSQL * pgbench: a simple benchmark program for PostgreSQL
* written by Tatsuo Ishii * written by Tatsuo Ishii
@ -81,7 +81,7 @@ int remains; /* number of remaining clients */
int is_connect; /* establish connection for each transaction */ int is_connect; /* establish connection for each transaction */
char *pghost = ""; char *pghost = "";
char *pgport = NULL; char *pgport = "";
char *pgoptions = NULL; char *pgoptions = NULL;
char *pgtty = NULL; char *pgtty = NULL;
char *login = NULL; char *login = NULL;