diff options
author | Philip Warner <pjw@rhyme.com.au> | 2000-10-13 03:11:06 +0000 |
---|---|---|
committer | Philip Warner <pjw@rhyme.com.au> | 2000-10-13 03:11:06 +0000 |
commit | 14f214de590463f477ae5000c404e890358b383c (patch) | |
tree | f403aea0911094fe8e85badc9097e603a686cdae | |
parent | 25a26a7ab8a70ee45dcbc6b060ce6ba274857a44 (diff) | |
download | postgresql-14f214de590463f477ae5000c404e890358b383c.tar.gz postgresql-14f214de590463f477ae5000c404e890358b383c.zip |
Minor buglet in dumping functions onlt
-rw-r--r-- | src/bin/pg_dump/pg_restore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index 12a10a51b58..68d528b8c65 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -132,9 +132,9 @@ int main(int argc, char **argv) progname = *argv; #ifdef HAVE_GETOPT_LONG - while ((c = getopt_long(argc, argv, "acCd:f:F:h:i:lNoOp:rRsS:t:T:uU:vx", cmdopts, NULL)) != EOF) + while ((c = getopt_long(argc, argv, "acCd:f:F:h:i:lNoOp:P:rRsS:t:T:uU:vx", cmdopts, NULL)) != EOF) #else - while ((c = getopt(argc, argv, "acCd:f:F:h:i:lNoOp:rRsS:t:T:uU:vx")) != -1) + while ((c = getopt(argc, argv, "acCd:f:F:h:i:lNoOp:P:rRsS:t:T:uU:vx")) != -1) #endif { switch (c) @@ -192,7 +192,7 @@ int main(int argc, char **argv) case 'P': /* Function */ opts->selTypes = 1; opts->selFunction = 1; - opts->functionNames = _cleanupName(optarg); + opts->functionNames = optarg ? strdup(optarg) : NULL; break; case 'I': /* Index */ opts->selTypes = 1; |