Content-Length: 254986 | pFad | http://github.com/postgrespro/postgres/commit/01025d80a16c747641386e2909deb81e2f9423a6

0F Avoid printing uninitialized filename variable in verbose mode · postgrespro/postgres@01025d8 · GitHub
Skip to content

Commit 01025d8

Browse files
committed
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
1 parent cfa1b4a commit 01025d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/pg_basebackup/pg_basebackup.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
565565
else
566566
#endif
567567
tarfile = stdout;
568+
strcpy(filename, "-");
568569
}
569570
else
570571
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/01025d80a16c747641386e2909deb81e2f9423a6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy