postgres.git / summary / log / commit / refs
commit 50b23e4374775749e35f84469a9cd080928ef333
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: Mon Apr 24 09:16:17 2023 +0000
First released in: 16.0, 11.20, 12.15, 13.11, 14.8, 15.3
Remove duplicate lines of code
Commit 6df7a9698bb accidentally included two identical prototypes for
default_multirange_selectivi() and commit 086cf1458c6 added a break;
statement where one was already present, thus duplicating it. While
there is no bug caused by this, fix by removing the duplicated lines
as they provide no value.
Backpatch the fix for duplicate prototypes to v14 and the duplicate
break statement fix to all supported branches to avoid backpatching
hazards due to the removal.
Reported-by: Anton Voloshin <a.voloshin@postgrespro.ru>
Discussion: https://postgr.es/m/0e69cb60-0176-f6d0-7e15-6478b7d85724@postgrespro.ru
src/interfaces/ecpg/preproc/variable.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/interfaces/ecpg/preproc/variable.c b/src/interfaces/ecpg/preproc/variable.c
index 887d479e735..8926676ab71 100644
--- a/src/interfaces/ecpg/preproc/variable.c
+++ b/src/interfaces/ecpg/preproc/variable.c
@@ -105,7 +105,6 @@ find_struct_member(char *name, char *str, struct ECPGstruct_member *members, int
else
return find_struct_member(name, ++end, members->type->u.members, brace_level);
break;
- break;
case '.':
if (members->type->type == ECPGt_array)
return find_struct_member(name, end, members->type->u.element->u.members, brace_level);
[parent: 48c6825d0ec8]