aboutsummaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/logicalfuncs.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-08-31 08:07:48 +0900
committerMichael Paquier <michael@paquier.xyz>2023-08-31 08:07:48 +0900
commitb5934bfd6071fed3a38cea0cfaa93afda63d9c0c (patch)
tree8a51a96f61699f0318315ccc89cef39f6866f2b5 /src/backend/replication/logical/logicalfuncs.c
parentd0fe3046eec3913829ccd5010849b25acd25fce4 (diff)
downloadpostgresql-b5934bfd6071fed3a38cea0cfaa93afda63d9c0c.tar.gz
postgresql-b5934bfd6071fed3a38cea0cfaa93afda63d9c0c.zip
Fix some shadow variables in src/backend/replication/
The code is able to compile already without warnings under -Wshadow=compatible-local, which is itself already enabled in the tree, and the ones fixed here showed up with the more restrictive -Wshadow. There are more of these that we may want to look at, and the ones fixed here made the code confusing. Author: Peter Smith Discussion: https://postgr.es/m/CAHut+PuR0y4ofNOxi691VTVWmBfScHV9AaBMGSpeh8+DKp81Nw@mail.gmail.com
Diffstat (limited to 'src/backend/replication/logical/logicalfuncs.c')
-rw-r--r--src/backend/replication/logical/logicalfuncs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/logical/logicalfuncs.c b/src/backend/replication/logical/logicalfuncs.c
index 55a24c02c94..197169d6b0d 100644
--- a/src/backend/replication/logical/logicalfuncs.c
+++ b/src/backend/replication/logical/logicalfuncs.c
@@ -181,10 +181,10 @@ pg_logical_slot_get_changes_guts(FunctionCallInfo fcinfo, bool confirm, bool bin
for (i = 0; i < nelems; i += 2)
{
- char *name = TextDatumGetCString(datum_opts[i]);
+ char *optname = TextDatumGetCString(datum_opts[i]);
char *opt = TextDatumGetCString(datum_opts[i + 1]);
- options = lappend(options, makeDefElem(name, (Node *) makeString(opt), -1));
+ options = lappend(options, makeDefElem(optname, (Node *) makeString(opt), -1));
}
}