Fix possible core dump from pgbench -d option. Julius Stroffek
authorTom Lane <[email protected]>
Wed, 22 Aug 2007 23:03:33 +0000 (23:03 +0000)
committerTom Lane <[email protected]>
Wed, 22 Aug 2007 23:03:33 +0000 (23:03 +0000)
contrib/pgbench/pgbench.c

index afe880bf3618c6328f0a1dc075ba3b1ac49f9459..41cc49c7aa1343fb0cc9be061fbe94f281ee695e 100644 (file)
@@ -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;