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

Commit988f907

Browse files
committed
Fix pg_upgrade's pg_scandir_internal() to properly handle a NULL
pattern, which is used on PG 9.1 and HEAD (but not pre-9.1). Fixescrash on Windows.Backpatched to 9.1.Reported by Mark Dilger
1 parentb735757 commit988f907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/pg_upgrade/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ pg_scandir_internal(const char *dirname,
296296
while ((direntry=readdir(dirdesc))!=NULL)
297297
{
298298
/* Invoke the selector function to see if the direntry matches */
299-
if ((*selector) (direntry))
299+
if (selector&&(*selector) (direntry))
300300
{
301301
count++;
302302

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp