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
308dd5b0dc
commit
c6e5c4dd1d
@ -300,6 +300,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
|
|||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
tarfile = stdout;
|
tarfile = stdout;
|
||||||
|
strcpy(filename, "-");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user