mirror of
https://github.com/postgres/postgres.git
synced 2026-06-03 14:00:01 -04: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
888b565704
commit
165aa1da58
1 changed files with 1 additions and 0 deletions
|
|
@ -491,6 +491,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
|
|||
else
|
||||
#endif
|
||||
tarfile = stdout;
|
||||
strcpy(filename, "-");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue