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

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема [PATCH][BUG FIX] Pointer var initilialized with boolean.
Дата
Msg-id MN2PR18MB2927FE3E5A1C1627903C8093E3490@MN2PR18MB2927.namprd18.prod.outlook.com
обсуждение исходный текст
Ответы Re: [PATCH][BUG FIX] Pointer var initilialized with boolean.  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
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;

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: [PATCH][BUG FIX] Pointer arithmetic with NULL
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: [PATCH][BUG FIX] Pointer var initilialized with boolean.