]> Pileus Git - ~andy/gtk/commit
rbtree: Don't write to nil node
authorBenjamin Otte <otte@redhat.com>
Mon, 21 Nov 2011 20:13:53 +0000 (21:13 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 21 Nov 2011 21:33:46 +0000 (22:33 +0100)
commit647c441e2672e35ef92d697dabd90c372d2402cb
tree08c87b24b76fb55005ec7ef40f3da6c770bf7e35
parentf4fe921a174897844ec7f2896597f60b0a206903
rbtree: Don't write to nil node

The code used to set nil->parent, which could cause segfaults. Don't do
that. We also need to pass the parent explicitly to the fixup code,
because the node during fixup may be the nil node.
gtk/gtkrbtree.c