rbtree redundant assignment
andrey zverev
andrew.zv at gmail.com
Sun Jul 9 08:57:20 UTC 2023
Hello, everyone!
I found a very strange thing in the ngx_rbtree_delete function. It seems
that there is redundant assignment under the following if statement:
if (subst->parent == node) {
temp->parent = subst;
Could someone please explain to me why this assignment is needed if temp
was taken as subst->right before? Because it was a child of subst, it means
temp had subst as its parent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20230709/75a33466/attachment.htm>
More information about the nginx-devel
mailing list