diff options
author | Peter Eisentraut | 2013-07-16 00:04:14 +0000 |
---|---|---|
committer | Peter Eisentraut | 2013-07-16 00:04:14 +0000 |
commit | 233bfe06735411f08d231764dfd3a6fcf7aef9a3 (patch) | |
tree | a92efd3ebdcc104cd01fe64137ab74b221ac4f94 /src/bin/pg_basebackup/streamutil.c | |
parent | 4ed22e891f9915b02b753ee8763a8f2438234fc6 (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.c | 2 |
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); } |