[PATCH][BUG FIX] Pointer var initilialized with boolean.

Started by Ranier Vilelaabout 6 years ago2 messages
#1Ranier Vilela
ranier_gyn@hotmail.com
1 attachment(s)

Hi,
Typo mystake?
Pointer var initilialized with boolean.

Best regards.
Ranier Vilela

--- \dll\postgresql-12.0\a\backend\commands\trigger.c	Mon Sep 30 17:06:55 2019
+++ trigger.c	Fri Nov 22 14:20:56 2019
@@ -2536,7 +2536,7 @@
 					 TupleTableSlot *slot)
 {
 	TriggerDesc *trigdesc = relinfo->ri_TrigDesc;
-	HeapTuple	newtuple = false;
+	HeapTuple	newtuple = NULL;
 	bool		should_free;
 	TriggerData LocTriggerData;
 	int			i;
@@ -3178,7 +3178,7 @@
 {
 	TriggerDesc *trigdesc = relinfo->ri_TrigDesc;
 	TupleTableSlot *oldslot = ExecGetTriggerOldSlot(estate, relinfo);
-	HeapTuple	newtuple = false;
+	HeapTuple	newtuple = NULL;
 	bool		should_free;
 	TriggerData LocTriggerData;
 	int			i;

Attachments:

trigger.c.patchapplication/octet-stream; name=trigger.c.patchDownload
--- \dll\postgresql-12.0\a\backend\commands\trigger.c	Mon Sep 30 17:06:55 2019
+++ trigger.c	Fri Nov 22 14:20:56 2019
@@ -2536,7 +2536,7 @@
 					 TupleTableSlot *slot)
 {
 	TriggerDesc *trigdesc = relinfo->ri_TrigDesc;
-	HeapTuple	newtuple = false;
+	HeapTuple	newtuple = NULL;
 	bool		should_free;
 	TriggerData LocTriggerData;
 	int			i;
@@ -3178,7 +3178,7 @@
 {
 	TriggerDesc *trigdesc = relinfo->ri_TrigDesc;
 	TupleTableSlot *oldslot = ExecGetTriggerOldSlot(estate, relinfo);
-	HeapTuple	newtuple = false;
+	HeapTuple	newtuple = NULL;
 	bool		should_free;
 	TriggerData LocTriggerData;
 	int			i;
In reply to: Ranier Vilela (#1)
Re: [PATCH][BUG FIX] Pointer var initilialized with boolean.

On Fri, Nov 22, 2019 at 9:30 AM Ranier Vilela <ranier_gyn@hotmail.com> wrote:

Hi,
Typo mystake?
Pointer var initilialized with boolean.

This was already fixed by commit 0cafdd03a850265006c0ada1b0bf4f83e087a409.

--
Peter Geoghegan