1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-03-24 22:01:34 +02:00

Keep compiler quite

This commit is contained in:
Arthur Zakirov 2018-11-15 11:46:42 +03:00
parent 0e445a99e8
commit d04d314eba
2 changed files with 3 additions and 3 deletions

@ -2173,7 +2173,7 @@ backup_files(void *arg)
if (S_ISREG(buf.st_mode)) if (S_ISREG(buf.st_mode))
{ {
pgFile **prev_file; pgFile **prev_file = NULL;
/* Check that file exist in previous backup */ /* Check that file exist in previous backup */
if (current.backup_mode != BACKUP_MODE_FULL) if (current.backup_mode != BACKUP_MODE_FULL)
@ -2214,7 +2214,7 @@ backup_files(void *arg)
bool skip = false; bool skip = false;
/* If non-data file has not changed since last backup... */ /* 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) buf.st_mtime < current.parent_backup)
{ {
calc_file_checksum(file); calc_file_checksum(file);

@ -165,7 +165,7 @@ merge_backups(pgBackup *to_backup, pgBackup *from_backup)
parray *files, parray *files,
*to_files; *to_files;
pthread_t *threads = NULL; pthread_t *threads = NULL;
merge_files_arg *threads_args; merge_files_arg *threads_args = NULL;
int i; int i;
bool merge_isok = true; bool merge_isok = true;