Silence compiler warning in release 11 and 12 branches
authorAndrew Dunstan <[email protected]>
Sun, 27 Aug 2023 11:01:26 +0000 (07:01 -0400)
committerAndrew Dunstan <[email protected]>
Sun, 27 Aug 2023 11:03:53 +0000 (07:03 -0400)
The offending code is not present in later branches.

Discussion: https://postgr.es/m/ba2150c1-8485-6597-fafe-4fcd39e49c28@dunslane.net

src/backend/commands/foreigncmds.c

index 48746948b3f690a48002cf2ce4ea093b3ac64273..237dfcaf9229d631c503dab80fe1cbe193bdcd9c 100644 (file)
@@ -472,7 +472,7 @@ static Oid
 lookup_fdw_handler_func(DefElem *handler)
 {
    Oid         handlerOid;
-   Oid         funcargtypes[1];    /* dummy */
+   Oid         funcargtypes[1] = {0};  /* dummy */
 
    if (handler == NULL || handler->arg == NULL)
        return InvalidOid;