]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Silence compiler warning in release 11 and 12 branches
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 27 Aug 2023 11:01:26 +0000 (07:01 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 27 Aug 2023 11:04:23 +0000 (07:04 -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 bc583c689c293a7167ccd68b18eb8ba154ae3d94..0c3ff3182e49083b57398644b3309c2736067ce7 100644 (file)
@@ -478,7 +478,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;