]> granicus.if.org Git - postgresql/commitdiff
Fix compiler warning
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 17 Apr 2017 00:49:40 +0000 (20:49 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 17 Apr 2017 00:49:40 +0000 (20:49 -0400)
Introduced by 41306a511c01dd299115cf447858a00e34aebbf6, happens with gcc
4.7.2.

src/backend/catalog/objectaddress.c

index 8ccc171d03aec49d9184bb9af19066b50eb53568..68ba35248cec269a67a75a9cb58ee5e2c21ecb57 100644 (file)
@@ -1578,8 +1578,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;