diff options
author | Benjamin Otte <otte@redhat.com> | 2011-11-21 19:51:39 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-11-21 22:33:45 +0100 |
commit | 6168a64713a9eb670db8e2e054e48c524553ea1b (patch) | |
tree | ff774c30714ea30533314fcaaae64cc5974a368b /gtk/gtkrbtree.c | |
parent | 69a516018f116a4cc9dc4f47a735a86daf381bbb (diff) | |
download | gtk+-6168a64713a9eb670db8e2e054e48c524553ea1b.tar.gz |
rbtree: Add assertions to clarify usage
Diffstat (limited to 'gtk/gtkrbtree.c')
-rw-r--r-- | gtk/gtkrbtree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkrbtree.c b/gtk/gtkrbtree.c index 53faea2bea..279df205df 100644 --- a/gtk/gtkrbtree.c +++ b/gtk/gtkrbtree.c @@ -472,6 +472,7 @@ _gtk_rbtree_insert_after (GtkRBTree *tree, } else { + g_assert (tree->root == tree->nil); tree->root = node; tmp_node = tree->parent_node; tmp_tree = tree->parent_tree; @@ -558,6 +559,7 @@ _gtk_rbtree_insert_before (GtkRBTree *tree, } else { + g_assert (tree->root == tree->nil); tree->root = node; tmp_node = tree->parent_node; tmp_tree = tree->parent_tree; |