1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-15 15:09:56 +02:00

Push down path variable

This commit is contained in:
Arthur Zakirov 2018-07-10 14:53:16 +03:00
parent 1b70807d38
commit e90714bcd4

View File

@ -196,7 +196,6 @@ main(int argc, char *argv[])
{ {
char *command = NULL, char *command = NULL,
*command_name; *command_name;
char path[MAXPGPATH];
/* Check if backup_path is directory. */ /* Check if backup_path is directory. */
struct stat stat_buf; struct stat stat_buf;
int rc; int rc;
@ -377,6 +376,8 @@ main(int argc, char *argv[])
*/ */
if (instance_name && backup_subcmd != SET_CONFIG_CMD) if (instance_name && backup_subcmd != SET_CONFIG_CMD)
{ {
char path[MAXPGPATH];
/* Read environment variables */ /* Read environment variables */
pgut_getopt_env(options); pgut_getopt_env(options);