1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Fix PQconninfoParse error message handling

The returned error message already includes a newline, but the callers
were adding their own when printing it out.
This commit is contained in:
Peter Eisentraut
2013-07-15 20:04:14 -04:00
parent 4ed22e891f
commit 233bfe0673
4 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ main(int argc, char *argv[])
opts = PQconninfoParse(argv[1], &errmsg);
if (opts == NULL)
{
fprintf(stderr, "uri-regress: %s\n", errmsg);
fprintf(stderr, "uri-regress: %s", errmsg);
return 1;
}