Fix compiler warning
authorPeter Eisentraut
Mon, 17 Apr 2017 00:50:31 +0000 (20:50 -0400)
committerPeter Eisentraut
Mon, 17 Apr 2017 00:50:31 +0000 (20:50 -0400)
Introduced by 087e696f066d31cb2f1269a1296a13dfe0bf7a11, happens with gcc
4.7.2.

src/backend/catalog/objectaddress.c

index c8ddb540f69253be1c5749ce0eec35e217e5b887..1fb72760a0f11d433781df1d9830f4342c60a884 100644 (file)
@@ -1526,8 +1526,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;