]> granicus.if.org Git - postgresql/commitdiff
Fix possible core dump from pgbench -d option. Julius Stroffek
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Aug 2007 23:03:27 +0000 (23:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 22 Aug 2007 23:03:27 +0000 (23:03 +0000)
contrib/pgbench/pgbench.c

index f682644f56ce8c715d046bbe586e247cc868a3fc..d824c2ca728149c0cba07d365691747bc9b91c44 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $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
  * written by Tatsuo Ishii
@@ -87,7 +87,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;