• Pavel Emelyanov's avatar
    file-ids: Fix subnode linkage · ab1c83b9
    Pavel Emelyanov authored
    The subtree node should be linked with common rbtree procedure. Otherwise
    the very first subtree insertion results in an infinite loop in the rb
    linking and balancing code.
    
    Plus, mark the root as static and add the subroot node initialization check.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    ab1c83b9
file-ids.c 4.22 KB