Skip to content

Commit 8d51d7f

Browse files
committed
Use C99 designator in the rbtree sentinel definition
This change should improve the code readability. Discussion: https://postgr.es/m/CAGRrpzYE8-7GCoaPjOiL9T_HY605MRax-2jgTtLq236uksZ1Sw%40mail.gmail.com Author: Steve Chavez, Alexander Korotkov Reviewed-by: Alexander Korotkov
1 parent d498e05 commit 8d51d7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/lib/rbtree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct RBTree
6262

6363
static RBTNode sentinel =
6464
{
65-
RBTBLACK, RBTNIL, RBTNIL, NULL
65+
.color = RBTBLACK,.left = RBTNIL,.right = RBTNIL,.parent = NULL
6666
};
6767

6868

0 commit comments

Comments
 (0)