aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2022-03-20 22:10:24 +0100
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2022-03-20 22:10:24 +0100
commit2d655a08d532feed356222a8b1e427561dc7a883 (patch)
treee3a981c19d96bbd70abcf8620f3b9dc3ce002ad1 /src/backend/executor/nodeModifyTable.c
parenta096813b6f583621db4119b6ab1be4ffc26f859d (diff)
downloadpostgresql-2d655a08d532feed356222a8b1e427561dc7a883.tar.gz
postgresql-2d655a08d532feed356222a8b1e427561dc7a883.zip
Blind fix for uninitialized memory bug in ba9a7e392171
Valgrind animal skink shows a crash in this new code. I couldn't reproduce the problem locally, but going by blind code inspection, initializing insert_destrel should be sufficient to fix the problem.
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
-rw-r--r--src/backend/executor/nodeModifyTable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c
index 5e4226abe26..701fe052967 100644
--- a/src/backend/executor/nodeModifyTable.c
+++ b/src/backend/executor/nodeModifyTable.c
@@ -1820,7 +1820,7 @@ lreplace:;
if (partition_constraint_failed)
{
TupleTableSlot *inserted_tuple;
- ResultRelInfo *insert_destrel;
+ ResultRelInfo *insert_destrel = NULL;
/*
* ExecCrossPartitionUpdate will first DELETE the row from the