Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit165aa1d

Browse files
committed
Avoid printing uninitialized filename variable in verbose mode
When using verbose mode for pg_basebackup, in tar format sent tostdout, we'd print an unitialized buffer as the filename.Reported by Pontus Lundkvist
1 parent888b565 commit165aa1d

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
@@ -491,6 +491,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
491491
else
492492
#endif
493493
tarfile=stdout;
494+
strcpy(filename,"-");
494495
}
495496
else
496497
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp