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)
2173
2173
2174
2174
if (S_ISREG (buf .st_mode ))
2175
2175
{
2176
- pgFile * * prev_file ;
2176
+ pgFile * * prev_file = NULL ;
2177
2177
2178
2178
/* Check that file exist in previous backup */
2179
2179
if (current .backup_mode != BACKUP_MODE_FULL )
@@ -2214,7 +2214,7 @@ backup_files(void *arg)
2214
2214
bool skip = false;
2215
2215
2216
2216
/* If non-data file has not changed since last backup... */
2217
- if (file -> exists_in_prev &&
2217
+ if (prev_file && file -> exists_in_prev &&
2218
2218
buf .st_mtime < current .parent_backup )
2219
2219
{
2220
2220
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)
165
165
parray * files ,
166
166
* to_files ;
167
167
pthread_t * threads = NULL ;
168
- merge_files_arg * threads_args ;
168
+ merge_files_arg * threads_args = NULL ;
169
169
int i ;
170
170
bool merge_isok = true;
171
171
You can’t perform that action at this time.
0 commit comments