Skip to content
Snippets Groups Projects
Commit 165aa1da authored by Magnus Hagander's avatar Magnus Hagander
Browse files

Avoid printing uninitialized filename variable in verbose mode

When using verbose mode for pg_basebackup, in tar format sent to
stdout, we'd print an unitialized buffer as the filename.

Reported by Pontus Lundkvist
parent 888b5657
No related branches found
No related tags found
No related merge requests found
......@@ -491,6 +491,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
else
#endif
tarfile = stdout;
strcpy(filename, "-");
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment