Fix pg_upgrade's pg_scandir_internal() to properly handle a NULL

Bruce Momjian <bruce@momjian.us>

Commit: 988f907d2437ea0b45aa0002178610bb9d8a399a
Author: Bruce Momjian <bruce@momjian.us>
Date: 2011-11-17T18:24:54Z
Releases: 9.2.0
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).  Fixes
crash on Windows.

Backpatched to 9.1.

Reported by Mark Dilger

Files

PathChange+/−
contrib/pg_upgrade/file.c modified +1 −1