We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4c71af commit 5ee0a8dCopy full SHA for 5ee0a8d
src/bin/pg_ctl/pg_ctl.c
@@ -4,7 +4,7 @@
4
*
5
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
6
7
- * $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 $
8
9
*-------------------------------------------------------------------------
10
*/
@@ -1309,7 +1309,7 @@ main(int argc, char **argv)
1309
pg_data = getenv("PGDATA");
1310
if (pg_data)
1311
{
1312
- /* XXX modifies environment var in-place ... ugly ... */
+ pg_data = xstrdup(pg_data);
1313
canonicalize_path(pg_data);
1314
}
1315
0 commit comments