summaryrefslogtreecommitdiff
path: root/src/bin/initdb/initdb.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2012-04-18 10:58:01 -0400
committerAndrew Dunstan <andrew@dunslane.net>2012-04-18 10:58:01 -0400
commit5969ee4df7e98cbb8cc0d1ec04027567ab932a50 (patch)
tree5aedd4731e18b05382a37f0ff34974af5cf14578 /src/bin/initdb/initdb.c
parent4fd49c7336226124a3288fd67774f856de7ddb0d (diff)
Revert recent commit re positional arguments.
Diffstat (limited to 'src/bin/initdb/initdb.c')
-rw-r--r--src/bin/initdb/initdb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index bbc79979303..7ca4c934318 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -2563,11 +2563,8 @@ main(int argc, char *argv[])
}
- /*
- * Non-option argument specifies data directory
- * as long as it wasn't already specified with -D / --pgdata
- */
- if (optind < argc && strlen(pg_data) == 0)
+ /* Non-option argument specifies data directory */
+ if (optind < argc)
{
pg_data = xstrdup(argv[optind]);
optind++;