Skip to content

Commit 974956c

Browse files
committed
Fix warning about mixed declarations and code
1 parent 58d01f2 commit 974956c

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
@@ -506,12 +506,12 @@ do_backup_pg(InstanceState *instanceState, PGconn *backup_conn,
506506
/* copy pg_control at very end */
507507
if (backup_isok)
508508
{
509+
char from_fullpath[MAXPGPATH];
510+
char to_fullpath[MAXPGPATH];
509511

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

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

0 commit comments

Comments
 (0)