diff options
Diffstat (limited to 'src/bin/scripts/clusterdb.c')
-rw-r--r-- | src/bin/scripts/clusterdb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/scripts/clusterdb.c b/src/bin/scripts/clusterdb.c index b8ac6759b48..261b438edad 100644 --- a/src/bin/scripts/clusterdb.c +++ b/src/bin/scripts/clusterdb.c @@ -71,13 +71,13 @@ main(int argc, char *argv[]) switch (c) { case 'h': - host = optarg; + host = pg_strdup(optarg); break; case 'p': - port = optarg; + port = pg_strdup(optarg); break; case 'U': - username = optarg; + username = pg_strdup(optarg); break; case 'w': prompt_password = TRI_NO; @@ -92,19 +92,19 @@ main(int argc, char *argv[]) quiet = true; break; case 'd': - dbname = optarg; + dbname = pg_strdup(optarg); break; case 'a': alldb = true; break; case 't': - table = optarg; + table = pg_strdup(optarg); break; case 'v': verbose = true; break; case 2: - maintenance_db = optarg; + maintenance_db = pg_strdup(optarg); break; default: fprintf(stderr, _("Try \"%s --help\" for more information.\n"), progname); |