summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Korotkov2022-07-08 18:51:00 +0000
committerAlexander Korotkov2022-07-08 19:00:03 +0000
commit8d51d7f403c209ab4d5db203f5e350f6c71233ca (patch)
tree623fcd64fe339b07fcbba5e19460234056aff2eb
parentd498e052b4b84ae21b3b68d5b3fda6ead65d1d4d (diff)
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
-rw-r--r--src/backend/lib/rbtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/lib/rbtree.c b/src/backend/lib/rbtree.c
index a9981dbadad..e1cc4110bd4 100644
--- a/src/backend/lib/rbtree.c
+++ b/src/backend/lib/rbtree.c
@@ -62,7 +62,7 @@ struct RBTree
static RBTNode sentinel =
{
- RBTBLACK, RBTNIL, RBTNIL, NULL
+ .color = RBTBLACK,.left = RBTNIL,.right = RBTNIL,.parent = NULL
};