author | Florian Forster <octo@collectd.org> | |
Mon, 8 Oct 2012 14:20:34 +0000 (16:20 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 8 Oct 2012 14:20:34 +0000 (16:20 +0200) | ||
commit | 60c6faf4fe7779e3d2f1c0c807103bbd2ee0c697 | |
tree | 754c58b91fe921f4e7f39da3909ad094e38ba860 | tree | snapshot |
parent | 4d3766818c0c3cbcb87331809868345f18351b10 | commit | diff |
src/utils_avltree.c: Fix an off-by-one error in c_avl_insert().
When inserting the first node in the tree, the size is not incremented.
This causes c_avl_size() to return one element too little.
Thanks to Yves Mettier for debugging this!
When inserting the first node in the tree, the size is not incremented.
This causes c_avl_size() to return one element too little.
Thanks to Yves Mettier for debugging this!
src/utils_avltree.c | diff | blob | history |