File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments