Fix uninitialized-variable bug.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: e56dd7cf5078d9651d715a72cd802a3aa346c63a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-09-08T23:04:32Z
Releases: 11.0
Fix uninitialized-variable bug.

map_partition_varattnos() failed to set its found_whole_row output
parameter if the given expression list was NIL.  This seems to be
a pre-existing bug that chanced to be exposed by commit 6f6b99d13.
It might be unreachable in v10, but I have little faith in that
proposition, so back-patch.

Per buildfarm.

Files

PathChange+/−
src/backend/catalog/partition.c modified +15 −13