1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-28 18:48:04 +03:00

Use strdup in pg_ctl for canonicalize_path on environment variable.

Simplify postmaster call too.
This commit is contained in:
Bruce Momjian
2004-07-12 18:17:13 +00:00
parent a0db74a35c
commit 76e7e2e776
2 changed files with 4 additions and 10 deletions

View File

@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.409 2004/07/11 23:49:45 momjian Exp $
* $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.410 2004/07/12 18:17:13 momjian Exp $
*
* NOTES
*
@@ -526,10 +526,7 @@ PostmasterMain(int argc, char *argv[])
}
if (userPGDATA)
{
userPGDATA = strdup(userPGDATA);
canonicalize_path(userPGDATA);
}
canonicalize_path(userPGDATA = strdup(userPGDATA));
if (onlyConfigSpecified(userPGDATA))
{