summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 06:34:34 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 06:34:34 (EDT)
commit313c7d8b418139f9763c271c145af79f80ffb1e9 (patch)
tree42117dfa6fc4263a100fec0ba8fa9788619d5005
parent07a4eccc7595c53863996fcc3d38d263f35ef5cc (diff)
downloadmarquee-313c7d8b418139f9763c271c145af79f80ffb1e9.zip
marquee-313c7d8b418139f9763c271c145af79f80ffb1e9.tar.gz
marquee-313c7d8b418139f9763c271c145af79f80ffb1e9.tar.bz2
mq_tree_insert_root_allocated(): Set node size
-rw-r--r--src/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index 618503d..4d989b2 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -27,6 +27,7 @@ MqTree *
mq_tree_insert_root_allocated(MqTree *node, gpointer data)
{
node->root = node;
+ node->size = 1;
node->data = data;
return node;