public inbox for [email protected]
help / color / mirror / Atom feedFrom: Justin Pryzby <[email protected]>
Subject: [PATCH 06/26] avoid shadow vars: basebackup_target.c: ttype
Date: Tue, 16 Aug 2022 18:51:10 -0500
backpatch to v15
commit e4ba69f3f4a1b997aa493cc02e563a91c0f35b87
Author: Robert Haas <[email protected]>
Date: Tue Mar 15 13:22:04 2022 -0400
Allow extensions to add new backup targets.
---
src/backend/backup/basebackup_target.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/backup/basebackup_target.c b/src/backend/backup/basebackup_target.c
index 83928e32055..1553568a37d 100644
--- a/src/backend/backup/basebackup_target.c
+++ b/src/backend/backup/basebackup_target.c
@@ -73,9 +73,9 @@ BaseBackupAddTarget(char *name,
/* Search the target type list for an existing entry with this name. */
foreach(lc, BaseBackupTargetTypeList)
{
- BaseBackupTargetType *ttype = lfirst(lc);
+ BaseBackupTargetType *this_ttype = lfirst(lc);
- if (strcmp(ttype->name, name) == 0)
+ if (strcmp(this_ttype->name, name) == 0)
{
/*
* We found one, so update it.
@@ -84,8 +84,8 @@ BaseBackupAddTarget(char *name,
* the same name multiple times, but if it happens, this seems
* like the sanest behavior.
*/
- ttype->check_detail = check_detail;
- ttype->get_sink = get_sink;
+ this_ttype->check_detail = check_detail;
+ this_ttype->get_sink = get_sink;
return;
}
}
--
2.17.1
--wayzTnRSUXKNfBqd
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
filename="0007-avoid-shadow-vars-parse_jsontable.c-jtc.patch"
view thread (3+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH 06/26] avoid shadow vars: basebackup_target.c: ttype
In-Reply-To: <no-message-id-1858935@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox