]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - rbtree.c
Auxiliary functions to parse and validate parts of URIs.
[paraslash.git] / rbtree.c
index 5d24aeb5063a788215eca93a73698f50a68b0bc2..95bcee398d7d04b869479529f8b1c3b5eb72c516 100644 (file)
--- a/rbtree.c
+++ b/rbtree.c
@@ -438,9 +438,9 @@ struct rb_node *rb_nth(struct rb_node *node, unsigned n)
  */
 int rb_rank(struct rb_node *node, unsigned *rank)
 {
-       *rank = 1;
        struct rb_node *parent;
 
+       *rank = 1;
        if (!node)
                return -1;
        if (node->rb_left)