summaryrefslogtreecommitdiff
path: root/src/bin/pg_basebackup/streamutil.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2013-07-15 20:04:14 -0400
committerPeter Eisentraut <peter_e@gmx.net>2013-07-15 20:08:41 -0400
commitbdbb1d673834ef7af16d97158d9d0006b17949f7 (patch)
treeeab4904f87243f30c22cea1ec9639e225e3cd050 /src/bin/pg_basebackup/streamutil.c
parent22b7f5c5aa1dc2909e110b171b03d6e0c85dcd43 (diff)
Fix PQconninfoParse error message handling
The returned error message already includes a newline, but the callers were adding their own when printing it out.
Diffstat (limited to 'src/bin/pg_basebackup/streamutil.c')
-rw-r--r--src/bin/pg_basebackup/streamutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/streamutil.c b/src/bin/pg_basebackup/streamutil.c
index dab0e5470cf..1dfb80f4a72 100644
--- a/src/bin/pg_basebackup/streamutil.c
+++ b/src/bin/pg_basebackup/streamutil.c
@@ -56,7 +56,7 @@ GetConnection(void)
conn_opts = PQconninfoParse(connection_string, &err_msg);
if (conn_opts == NULL)
{
- fprintf(stderr, "%s: %s\n", progname, err_msg);
+ fprintf(stderr, "%s: %s", progname, err_msg);
exit(1);
}