diff options
author | Bruce Momjian <bruce@momjian.us> | 2004-07-12 19:18:18 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2004-07-12 19:18:18 +0000 |
commit | 5ee0a8dcb68a6443f37ab719471d35c8ae8b52af (patch) | |
tree | 72881fb52f327cc5ea421d622e2a3689fabc2360 | |
parent | a4c71af2c01c4a3def06905356f47b99f2a753d1 (diff) | |
download | postgresql-5ee0a8dcb68a6443f37ab719471d35c8ae8b52af.tar.gz postgresql-5ee0a8dcb68a6443f37ab719471d35c8ae8b52af.zip |
canonicalization adjustments.
-rw-r--r-- | src/bin/pg_ctl/pg_ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.c b/src/bin/pg_ctl/pg_ctl.c index 13f0561b3a4..e83701580f8 100644 --- a/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c @@ -4,7 +4,7 @@ * * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.20 2004/07/12 19:15:07 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.21 2004/07/12 19:18:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -1309,7 +1309,7 @@ main(int argc, char **argv) pg_data = getenv("PGDATA"); if (pg_data) { - /* XXX modifies environment var in-place ... ugly ... */ + pg_data = xstrdup(pg_data); canonicalize_path(pg_data); } |