Fix compiler warning

Introduced by 41306a511c01dd299115cf447858a00e34aebbf6, happens with gcc
4.7.2.

Forward-port of 1ec36a9eb4c2, which was applied to 9.6 only.

Author: Peter Eisentraut <peter@eisentraut.org>
Reported-by: Anton Voloshin <a.voloshin@postgrespro.ru>
Discussion: https://postgr.es/m/be8bbcdf-35f8-a8a6-098f-65c2e9497151@postgrespro.ru
This commit is contained in:
Alvaro Herrera 2021-06-07 11:04:23 -04:00
parent a17ac975e2
commit 32db0d68be
No known key found for this signature in database
GPG Key ID: 1C20ACB9D5C564AE

View File

@ -1574,8 +1574,8 @@ get_object_address_opf_member(ObjectType objtype,
ObjectAddress address;
ListCell *cell;
List *copy;
TypeName *typenames[2];
Oid typeoids[2];
TypeName *typenames[2] = { NULL, NULL };
Oid typeoids[2] = { InvalidOid, InvalidOid };
int membernum;
int i;