mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Initialize rn_mklist in rn_newpair(). The undocumented assumption
seems to be that the nodes are bzero'd beforehand, but the submitter found that this was not always the case, and in any event defensive programming here costs epsilon squared. PR: 22244 Submitted by: Dave Gillam <daveg@chiaro.com>
This commit is contained in:
parent
a415ada785
commit
9d31ac12b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67727
@ -344,6 +344,7 @@ rn_newpair(v, b, nodes)
|
||||
tt->rn_key = (caddr_t)v;
|
||||
tt->rn_parent = t;
|
||||
tt->rn_flags = t->rn_flags = RNF_ACTIVE;
|
||||
tt->rn_mklist = t->rn_mklist = 0;
|
||||
#ifdef RN_DEBUG
|
||||
tt->rn_info = rn_nodenum++; t->rn_info = rn_nodenum++;
|
||||
tt->rn_twin = t;
|
||||
|
Loading…
Reference in New Issue
Block a user