From 3a018600d3834af6779842a0448368201a61e797 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 23 Sep 2005 06:27:16 +0000 Subject: [PATCH] Revert prev commit --- libraries/liblutil/tavl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/liblutil/tavl.c b/libraries/liblutil/tavl.c index 9a7c9a31f2..d2a4ccf428 100644 --- a/libraries/liblutil/tavl.c +++ b/libraries/liblutil/tavl.c @@ -475,7 +475,7 @@ Avlnode * tavl_end( Avlnode *root, int dir ) { if ( root ) { - while ( root->avl_bits[dir] == AVL_CHILD && root->avl_link[dir] ) + while ( root->avl_bits[dir] == AVL_CHILD ) root = root->avl_link[dir]; } return root; @@ -491,7 +491,7 @@ tavl_next( Avlnode *root, int dir ) root = root->avl_link[dir]; if ( c == AVL_CHILD ) { dir ^= 1; - while ( root && root->avl_bits[dir] == AVL_CHILD ) + while ( root->avl_bits[dir] == AVL_CHILD ) root = root->avl_link[dir]; } } -- 2.39.5