Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0cafdd0

Browse filesBrowse files
committed
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 ff11e7f, so back-patch to v12 where that was added. Didier Gautheron Discussion: https://postgr.es/m/CAJRYxu+XQuM0qnSqt1Ujztu6fBPzMMAT3VEn6W32rgKG6A2Fsw@mail.gmail.com
1 parent 7bf40ea commit 0cafdd0
Copy full SHA for 0cafdd0

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/backend/commands/trigger.c

Copy file name to clipboardExpand all lines: src/backend/commands/trigger.c
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2533,7 +2533,7 @@ ExecBRInsertTriggers(EState *estate, ResultRelInfo *relinfo,
25332533
TupleTableSlot *slot)
25342534
{
25352535
TriggerDesc *trigdesc = relinfo->ri_TrigDesc;
2536-
HeapTuple newtuple = false;
2536+
HeapTuple newtuple = NULL;
25372537
bool should_free;
25382538
TriggerData LocTriggerData;
25392539
int i;
@@ -3178,7 +3178,7 @@ ExecIRUpdateTriggers(EState *estate, ResultRelInfo *relinfo,
31783178
{
31793179
TriggerDesc *trigdesc = relinfo->ri_TrigDesc;
31803180
TupleTableSlot *oldslot = ExecGetTriggerOldSlot(estate, relinfo);
3181-
HeapTuple newtuple = false;
3181+
HeapTuple newtuple = NULL;
31823182
bool should_free;
31833183
TriggerData LocTriggerData;
31843184
int i;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.