Re: [BUG FIX] Uninitialized var fargtypes used.

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Ranier Vilela <ranier_gyn(at)hotmail(dot)com>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [BUG FIX] Uninitialized var fargtypes used.
Date: 2019-11-12 03:31:41
Message-ID: 20191112033141.GG1549@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2019-11-12 03:50:49 Re: [PATCH] Fix PostgreSQL server build and install problems under MSYS2
Previous Message Thomas Munro 2019-11-12 03:23:46 Re: PHJ file leak.