diff --git a/src/backend/distributed/commands/role.c b/src/backend/distributed/commands/role.c index 2604aa5bb..ea2486d96 100644 --- a/src/backend/distributed/commands/role.c +++ b/src/backend/distributed/commands/role.c @@ -879,7 +879,6 @@ GenerateGrantRoleStmtsOfRole(Oid roleid) List *adminStmts = NIL; List *otherStmts = NIL; - List *allStmts = NIL; ScanKeyData skey[1]; @@ -911,7 +910,7 @@ GenerateGrantRoleStmtsOfRole(Oid roleid) systable_endscan(scan); table_close(pgAuthMembers, AccessShareLock); - allStmts = list_concat(adminStmts, otherStmts); + List *allStmts = list_concat(adminStmts, otherStmts); List *commands = NIL; Node *stmt = NULL; foreach_ptr(stmt, allStmts)