Skip to content

Commit 7874bc4

Browse files
japinliOleg Gurev
authored andcommitted
Fix warning about mixed declarations and code
1 parent 0148fa8 commit 7874bc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,12 @@ do_backup_pg(InstanceState *instanceState, PGconn *backup_conn,
505505
/* copy pg_control at very end */
506506
if (backup_isok)
507507
{
508+
char from_fullpath[MAXPGPATH];
509+
char to_fullpath[MAXPGPATH];
508510

509511
elog(progress ? INFO : LOG, "Progress: Backup file \"%s\"",
510512
src_pg_control_file->rel_path);
511513

512-
char from_fullpath[MAXPGPATH];
513-
char to_fullpath[MAXPGPATH];
514514
join_path_components(from_fullpath, instance_config.pgdata, src_pg_control_file->rel_path);
515515
join_path_components(to_fullpath, current.database_dir, src_pg_control_file->rel_path);
516516

0 commit comments

Comments
 (0)