Skip to content

Commit e90714b

Browse files
committed
Push down path variable
1 parent 1b70807 commit e90714b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pg_probackup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ main(int argc, char *argv[])
196196
{
197197
char *command = NULL,
198198
*command_name;
199-
char path[MAXPGPATH];
200199
/* Check if backup_path is directory. */
201200
struct stat stat_buf;
202201
int rc;
@@ -377,6 +376,8 @@ main(int argc, char *argv[])
377376
*/
378377
if (instance_name && backup_subcmd != SET_CONFIG_CMD)
379378
{
379+
char path[MAXPGPATH];
380+
380381
/* Read environment variables */
381382
pgut_getopt_env(options);
382383

0 commit comments

Comments
 (0)