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 379aa2f commit 663e27cCopy full SHA for 663e27c
contrib/pg_upgrade/file.c
@@ -294,7 +294,7 @@ pg_scandir_internal(const char *dirname,
294
while ((direntry = readdir(dirdesc)) != NULL)
295
{
296
/* Invoke the selector function to see if the direntry matches */
297
- if (selector && (*selector) (direntry))
+ if (!selector || (*selector) (direntry))
298
299
count++;
300
0 commit comments