From: Howard Chu Date: Fri, 23 Sep 2005 06:27:16 +0000 (+0000) Subject: Revert prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~394 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a018600d3834af6779842a0448368201a61e797;p=openldap Revert prev commit --- 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]; } }