Thread: pgsql: Fix uninitialized memory reference.

pgsql: Fix uninitialized memory reference.

From
Robert Haas
Date:
Fix uninitialized memory reference.

Without this, when partdesc->nparts == 0, we end up calling
ExecBuildSlotPartitionKeyDescription without initializing values
and isnull.

Reported by Coverity via Michael Paquier.  Patch by Michael Paquier,
reviewed and revised by Amit Langote.

Discussion: http://postgr.es/m/CAB7nPqQ3mwkdMoPY-ocgTpPnjd8TKOadMxdTtMLvEzF8480Zfg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/59c8078744b5febf549c8b53171242cf667b87a1

Modified Files
--------------
src/backend/executor/execPartition.c | 18 +++++++++++-------
src/test/regress/expected/insert.out |  4 ++++
src/test/regress/sql/insert.sql      |  4 ++++
3 files changed, 19 insertions(+), 7 deletions(-)