mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-03-21 21:47:17 +02:00
Keep compiler quite
This commit is contained in:
parent
0e445a99e8
commit
d04d314eba
@ -2173,7 +2173,7 @@ backup_files(void *arg)
|
||||
|
||||
if (S_ISREG(buf.st_mode))
|
||||
{
|
||||
pgFile **prev_file;
|
||||
pgFile **prev_file = NULL;
|
||||
|
||||
/* Check that file exist in previous backup */
|
||||
if (current.backup_mode != BACKUP_MODE_FULL)
|
||||
@ -2214,7 +2214,7 @@ backup_files(void *arg)
|
||||
bool skip = false;
|
||||
|
||||
/* If non-data file has not changed since last backup... */
|
||||
if (file->exists_in_prev &&
|
||||
if (prev_file && file->exists_in_prev &&
|
||||
buf.st_mtime < current.parent_backup)
|
||||
{
|
||||
calc_file_checksum(file);
|
||||
|
@ -165,7 +165,7 @@ merge_backups(pgBackup *to_backup, pgBackup *from_backup)
|
||||
parray *files,
|
||||
*to_files;
|
||||
pthread_t *threads = NULL;
|
||||
merge_files_arg *threads_args;
|
||||
merge_files_arg *threads_args = NULL;
|
||||
int i;
|
||||
bool merge_isok = true;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user