aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-11-13 15:26:54 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-11-13 15:26:54 -0500
commit0cafdd03a850265006c0ada1b0bf4f83e087a409 (patch)
tree7aadab7699e5e20abf0314674d1c68ef59335735
parent7bf40ea0d028e6dc49c152e5820a65d69b74b409 (diff)
downloadpostgresql-0cafdd03a850265006c0ada1b0bf4f83e087a409.tar.gz
postgresql-0cafdd03a850265006c0ada1b0bf4f83e087a409.zip
Fix silly initializations (cosmetic only).
Initializing a pointer to "false" isn't per project style, and reportedly some compilers warn about it (though I've not seen any such warnings in the buildfarm). Seems to have come in with commit ff11e7f4b, so back-patch to v12 where that was added. Didier Gautheron Discussion: https://postgr.es/m/CAJRYxu+XQuM0qnSqt1Ujztu6fBPzMMAT3VEn6W32rgKG6A2Fsw@mail.gmail.com
-rw-r--r--src/backend/commands/trigger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/trigger.c b/src/backend/commands/trigger.c
index 84144b46b15..8d22d43bc3a 100644
--- a/src/backend/commands/trigger.c
+++ b/src/backend/commands/trigger.c
@@ -2533,7 +2533,7 @@ ExecBRInsertTriggers(EState *estate, ResultRelInfo *relinfo,
TupleTableSlot *slot)
{
TriggerDesc *trigdesc = relinfo->ri_TrigDesc;
- HeapTuple newtuple = false;
+ HeapTuple newtuple = NULL;
bool should_free;
TriggerData LocTriggerData;
int i;
@@ -3178,7 +3178,7 @@ ExecIRUpdateTriggers(EState *estate, ResultRelInfo *relinfo,
{
TriggerDesc *trigdesc = relinfo->ri_TrigDesc;
TupleTableSlot *oldslot = ExecGetTriggerOldSlot(estate, relinfo);
- HeapTuple newtuple = false;
+ HeapTuple newtuple = NULL;
bool should_free;
TriggerData LocTriggerData;
int i;