Commit d0975342 authored by Tom Lane's avatar Tom Lane

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

parent 11fee4e3
/* /*
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.69 2007/07/15 22:34:26 tgl Exp $ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.70 2007/08/22 23:03:27 tgl Exp $
* *
* pgbench: a simple benchmark program for PostgreSQL * pgbench: a simple benchmark program for PostgreSQL
* written by Tatsuo Ishii * written by Tatsuo Ishii
...@@ -87,7 +87,7 @@ int remains; /* number of remaining clients */ ...@@ -87,7 +87,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;
......
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