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

From Ranier Vilela
Subject [BUG FIX] Uninitialized var fargtypes used.
Date
Msg-id MN2PR18MB2927F6873DF2774A505AC298E3740@MN2PR18MB2927.namprd18.prod.outlook.com
Whole thread Raw
Responses Re: [BUG FIX] Uninitialized var fargtypes used.
List pgsql-hackers
Hi,
Can anyone check this bug fix?

Thanks.
Ranier Vilela

--- \dll\postgresql-12.0\a\backend\commands\event_trigger.c     Mon Sep 30 17:06:55 2019
+++ 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();
         ListCell   *lc;
         List       *tags = NULL;
Attachment

pgsql-hackers by date:

Previous
From: Mark Dilger
Date:
Subject: Re: TestLib::command_fails_like enhancement
Next
From: Andres Freund
Date:
Subject: Re: AtEOXact_Snapshot timing