summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;