Re: [BUG FIX] Uninitialized var fargtypes used. - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [BUG FIX] Uninitialized var fargtypes used.
Date
Msg-id 20191112033141.GG1549@paquier.xyz
Whole thread Raw
In response to [BUG FIX] Uninitialized var fargtypes used.  (Ranier Vilela <ranier_gyn@hotmail.com>)
Responses Re: [BUG FIX] Uninitialized var fargtypes used.
RE: [BUG FIX] Uninitialized var fargtypes used.
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: PHJ file leak.
Next
From: Michael Paquier
Date:
Subject: Re: [PATCH] Fix PostgreSQL server build and install problems underMSYS2