mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
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
This commit is contained in:
parent
eb3d350db3
commit
680baa8d24
@ -563,6 +563,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
|
||||
else
|
||||
#endif
|
||||
tarfile = stdout;
|
||||
strcpy(filename, "-");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user