mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Pgindent run on pg_upgrade source after restructuring.
This commit is contained in:
@ -173,8 +173,8 @@ copy_file(const char *srcfile, const char *dstfile, bool force)
|
||||
|
||||
if (nbytes < 0)
|
||||
{
|
||||
int save_errno = errno;
|
||||
|
||||
int save_errno = errno;
|
||||
|
||||
if (buffer != NULL)
|
||||
free(buffer);
|
||||
|
||||
@ -196,7 +196,7 @@ copy_file(const char *srcfile, const char *dstfile, bool force)
|
||||
if (write(dest_fd, buffer, nbytes) != nbytes)
|
||||
{
|
||||
/* if write didn't set errno, assume problem is no disk space */
|
||||
int save_errno = errno ? errno : ENOSPC;
|
||||
int save_errno = errno ? errno : ENOSPC;
|
||||
|
||||
if (buffer != NULL)
|
||||
free(buffer);
|
||||
|
Reference in New Issue
Block a user