Remove variable shadowing
authorAlvaro Herrera
Tue, 7 Apr 2015 20:14:00 +0000 (17:14 -0300)
committerAlvaro Herrera
Tue, 7 Apr 2015 20:14:00 +0000 (17:14 -0300)
Commit a2e35b53 should have removed the variable declaration in the
inner block, but didn't.  As a result, the returned address might end up
not being what was intended.

src/backend/commands/alter.c

index 3ddd7ec4343219de616e17bab26324bce391b17d..d28758cf8b26176a71a34b2ad95755bba8875021 100644 (file)
@@ -446,7 +446,6 @@ ExecAlterObjectSchemaStmt(AlterObjectSchemaStmt *stmt,
                Relation    relation;
                Oid         classId;
                Oid         nspOid;
-               ObjectAddress address;
 
                address = get_object_address(stmt->objectType,
                                             stmt->object,