diff options
| author | Magnus Hagander | 2014-02-09 10:54:33 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2014-02-09 11:09:39 +0000 |
| commit | 165aa1da588abcbcf3494b38bc03cb0e46e8831b (patch) | |
| tree | 8602b8fc5290ada5817c8c81d30cf6fdd51c93db /src | |
| parent | 888b5657049f56508645be4f5dd911b2c286438c (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index eaa69f612a2..32f17629332 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -491,6 +491,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum) else #endif tarfile = stdout; + strcpy(filename, "-"); } else { |
