We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 988f907 commit ee3ef8fCopy full SHA for ee3ef8f
contrib/pg_upgrade/file.c
@@ -296,7 +296,7 @@ pg_scandir_internal(const char *dirname,
296
while ((direntry = readdir(dirdesc)) != NULL)
297
{
298
/* Invoke the selector function to see if the direntry matches */
299
- if (selector && (*selector) (direntry))
+ if (!selector || (*selector) (direntry))
300
301
count++;
302
0 commit comments