From 233bfe06735411f08d231764dfd3a6fcf7aef9a3 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 15 Jul 2013 20:04:14 -0400 Subject: Fix PQconninfoParse error message handling The returned error message already includes a newline, but the callers were adding their own when printing it out. --- src/bin/scripts/pg_isready.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bin/scripts/pg_isready.c') diff --git a/src/bin/scripts/pg_isready.c b/src/bin/scripts/pg_isready.c index 5cb75a42ec0..d27ccea70fb 100644 --- a/src/bin/scripts/pg_isready.c +++ b/src/bin/scripts/pg_isready.c @@ -135,7 +135,7 @@ main(int argc, char **argv) opts = PQconninfoParse(pgdbname, &errmsg); if (opts == NULL) { - fprintf(stderr, _("%s: %s\n"), progname, errmsg); + fprintf(stderr, _("%s: %s"), progname, errmsg); exit(PQPING_NO_ATTEMPT); } } -- cgit v1.2.3