Skip to content

Commit 14f214d

Browse files
committed
Minor buglet in dumping functions onlt
1 parent 25a26a7 commit 14f214d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bin/pg_dump/pg_restore.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ int main(int argc, char **argv)
132132
progname = *argv;
133133

134134
#ifdef HAVE_GETOPT_LONG
135-
while ((c = getopt_long(argc, argv, "acCd:f:F:h:i:lNoOp:rRsS:t:T:uU:vx", cmdopts, NULL)) != EOF)
135+
while ((c = getopt_long(argc, argv, "acCd:f:F:h:i:lNoOp:P:rRsS:t:T:uU:vx", cmdopts, NULL)) != EOF)
136136
#else
137-
while ((c = getopt(argc, argv, "acCd:f:F:h:i:lNoOp:rRsS:t:T:uU:vx")) != -1)
137+
while ((c = getopt(argc, argv, "acCd:f:F:h:i:lNoOp:P:rRsS:t:T:uU:vx")) != -1)
138138
#endif
139139
{
140140
switch (c)
@@ -192,7 +192,7 @@ int main(int argc, char **argv)
192192
case 'P': /* Function */
193193
opts->selTypes = 1;
194194
opts->selFunction = 1;
195-
opts->functionNames = _cleanupName(optarg);
195+
opts->functionNames = optarg ? strdup(optarg) : NULL;
196196
break;
197197
case 'I': /* Index */
198198
opts->selTypes = 1;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy