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
pull/6/head
Magnus Hagander 12 years ago
parent cfa1b4a711
commit 01025d80a1
  1. 1
      src/bin/pg_basebackup/pg_basebackup.c

@ -565,6 +565,7 @@ ReceiveTarFile(PGconn *conn, PGresult *res, int rownum)
else
#endif
tarfile = stdout;
strcpy(filename, "-");
}
else
{

Loading…
Cancel
Save