RE: [BUG FIX] Uninitialized var fargtypes used.
От | Ranier Vilela |
---|---|
Тема | RE: [BUG FIX] Uninitialized var fargtypes used. |
Дата | |
Msg-id | MN2PR18MB2927B84B221B242765330E39E3770@MN2PR18MB2927.namprd18.prod.outlook.com обсуждение исходный текст |
Ответ на | Re: [BUG FIX] Uninitialized var fargtypes used. (Michael Paquier <michael@paquier.xyz>) |
Список | pgsql-hackers |
Hi,
Sorry by error in the patch.
--- \dll\postgresql-12.0\a\backend\commands\event_trigger.c Mon Sep 30 17:06:55 2019
Sorry by error in the patch.
--- \dll\postgresql-12.0\a\backend\commands\event_trigger.c Mon Sep 30 17:06:55 2019
+++ event_trigger.c Tue Nov 12 08:34:30 2019
@@ -171,7 +171,7 @@
HeapTuple tuple;
Oid funcoid;
Oid funcrettype;
- Oid fargtypes[1]; /* dummy */
+ Oid fargtypes[1] = {InvalidOid}; /* dummy */
Oid evtowner = GetUserId();
ListCell *lc;
List *tags = NULL;
De: Michael Paquier <michael@paquier.xyz>
Enviado: terça-feira, 12 de novembro de 2019 03:31
Para: Ranier Vilela <ranier_gyn@hotmail.com>
Cc: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Assunto: Re: [BUG FIX] Uninitialized var fargtypes used.
Enviado: terça-feira, 12 de novembro de 2019 03:31
Para: Ranier Vilela <ranier_gyn@hotmail.com>
Cc: pgsql-hackers@lists.postgresql.org <pgsql-hackers@lists.postgresql.org>
Assunto: Re: [BUG FIX] Uninitialized var fargtypes used.
On Mon, Nov 11, 2019 at 06:28:47PM +0000, Ranier Vilela wrote:
> Can anyone check this bug fix?
>
> +++ event_trigger.c Mon Nov 11 13:52:35 2019
> @@ -171,7 +171,7 @@
> HeapTuple tuple;
> Oid funcoid;
> Oid funcrettype;
> - Oid fargtypes[1]; /* dummy */
> + Oid fargtypes[1] = {InvalidOid, InvalidOid}; /* dummy */
> Oid evtowner = GetUserId();
Yeah, it would be better to fix this initialization.
--
Michael
> Can anyone check this bug fix?
>
> +++ event_trigger.c Mon Nov 11 13:52:35 2019
> @@ -171,7 +171,7 @@
> HeapTuple tuple;
> Oid funcoid;
> Oid funcrettype;
> - Oid fargtypes[1]; /* dummy */
> + Oid fargtypes[1] = {InvalidOid, InvalidOid}; /* dummy */
> Oid evtowner = GetUserId();
Yeah, it would be better to fix this initialization.
--
Michael
Вложения
В списке pgsql-hackers по дате отправления: