Skip to content

Commit 7fe9cb9

Browse files
committed
fix compiler warnings
1 parent da96020 commit 7fe9cb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ pg_stop_backup(pgBackup *backup)
916916
PGresult *res;
917917
uint32 xlogid;
918918
uint32 xrecoff;
919-
XLogRecPtr restore_lsn;
919+
XLogRecPtr restore_lsn = InvalidXLogRecPtr ;
920920
bool sent = false;
921921
int pg_stop_backup_timeout = 0;
922922

delete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ do_retention_purge(void)
130130
size_t i;
131131
time_t days_threshold = time(NULL) - (retention_window * 60 * 60 * 24);
132132
XLogRecPtr oldest_lsn = InvalidXLogRecPtr;
133-
TimeLineID oldest_tli;
133+
TimeLineID oldest_tli = 0;
134134
bool keep_next_backup = true; /* Do not delete first full backup */
135135
bool backup_deleted = false; /* At least one backup was deleted */
136136

0 commit comments

Comments
 (0)