提交 01025d80 编写于 作者: M Magnus Hagander

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
上级 cfa1b4a7
......@@ -565,6 +565,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
else
#endif
tarfile = stdout;
strcpy(filename, "-");
}
else
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册