Skip to content

Commit da96020

Browse files
committed
fix compiler warning about uninitialized var
1 parent cb1a7e3 commit da96020

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

restore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ do_restore_or_validate(time_t target_backup_id,
9090
pgBackup *current_backup = NULL;
9191
pgBackup *dest_backup = NULL;
9292
pgBackup *base_full_backup = NULL;
93-
int dest_backup_index;
94-
int base_full_backup_index;
93+
int dest_backup_index = 0;
94+
int base_full_backup_index = 0;
9595
char *action = is_restore ? "Restore":"Validate";
9696

9797
if (is_restore)

0 commit comments

Comments
 (0)