Skip to content

Commit d04d314

Browse files
committed
Keep compiler quite
1 parent 0e445a9 commit d04d314

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/backup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ backup_files(void *arg)
21732173

21742174
if (S_ISREG(buf.st_mode))
21752175
{
2176-
pgFile **prev_file;
2176+
pgFile **prev_file = NULL;
21772177

21782178
/* Check that file exist in previous backup */
21792179
if (current.backup_mode != BACKUP_MODE_FULL)
@@ -2214,7 +2214,7 @@ backup_files(void *arg)
22142214
bool skip = false;
22152215

22162216
/* If non-data file has not changed since last backup... */
2217-
if (file->exists_in_prev &&
2217+
if (prev_file && file->exists_in_prev &&
22182218
buf.st_mtime < current.parent_backup)
22192219
{
22202220
calc_file_checksum(file);

src/merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ merge_backups(pgBackup *to_backup, pgBackup *from_backup)
165165
parray *files,
166166
*to_files;
167167
pthread_t *threads = NULL;
168-
merge_files_arg *threads_args;
168+
merge_files_arg *threads_args = NULL;
169169
int i;
170170
bool merge_isok = true;
171171

0 commit comments

Comments
 (0)