projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d498e05
)
Use C99 designator in the rbtree sentinel definition
author
Alexander Korotkov
Fri, 8 Jul 2022 18:51:00 +0000
(21:51 +0300)
committer
Alexander Korotkov
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/lib/rbtree.c
b/src/backend/lib/rbtree.c
index a9981dbadad05d59967c0b2dec49324a903ae167..e1cc4110bd447d1deb3046276ee40eb9feed7e27 100644
(file)
--- 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
};