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
* written by Tatsuo Ishii
@ -81,7 +81,7 @@ int remains; /* number of remaining clients */
int is_connect; /* establish connection for each transaction */
char *pghost = "";
char *pgport = NULL;
char *pgport = "";
char *pgoptions = NULL;
char *pgtty = NULL;
char *login = NULL;