Use C99 designator in the rbtree sentinel definition
authorAlexander Korotkov <akorotkov@postgresql.org>
Fri, 8 Jul 2022 18:51:00 +0000 (21:51 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Fri, 8 Jul 2022 19:00:03 +0000 (22:00 +0300)
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
src/backend/lib/rbtree.c

index a9981dbadad05d59967c0b2dec49324a903ae167..e1cc4110bd447d1deb3046276ee40eb9feed7e27 100644 (file)
@@ -62,7 +62,7 @@ struct RBTree
 
 static RBTNode sentinel =
 {
-       RBTBLACK, RBTNIL, RBTNIL, NULL
+       .color = RBTBLACK,.left = RBTNIL,.right = RBTNIL,.parent = NULL
 };