pgsql: Reduce scope of for-loop-local variables to avoid shadowing
pgsql: Reduce scope of for-loop-local variables to avoid shadowing
От:
Álvaro Herrera <alvherre@kurilemu.de>
Дата:
Reduce scope of for-loop-local variables to avoid shadowing Adjust a couple of for-loops where a local variable was shadowed by another in the same scope, by renaming it as well as reducing its scope to the containing for-loop. Author: Chao Li Reviewed-by: Peter Smith Reviewed-by: Álvaro Herrera Discussion: https://postgr.es/m/CAEoWx2kQ2x5gMaj8tHLJ3=jfC+p5YXHkJyHrDTiQw2nn2FJTmQ@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/cece37c9843c980b5be2f6d24c2b9cef1f9429a7 Modified Files -------------- src/backend/backup/basebackup_incremental.c | 10 ++++------ src/backend/parser/parse_target.c | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-)