Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit14f214d

Browse files
committed
Minor buglet in dumping functions onlt
1 parent25a26a7 commit14f214d

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
#ifdefHAVE_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)

[8]ページ先頭

©2009-2025 Movatter.jp