src/utils_avltree.c: Rewrite checks in c_avl_pick().
authorFlorian Forster <octo@collectd.org>
Wed, 17 Jun 2015 06:55:42 +0000 (08:55 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 17 Jun 2015 06:55:44 +0000 (08:55 +0200)
commit86ef26818f3a1af5afb4842e9c97c34ffe98bafa
tree3a6a6fa99abdec69b9e382cf8b5b0a249ee12bbd
parent6efc94f59c38e86309078fb9e20c78a2e9c8ff59
src/utils_avltree.c: Rewrite checks in c_avl_pick().

The previous code made the (correct) assumption that "height" is always
greater than zero. This tripped up clang's "scan-build".

This confuses the static analysis in two more places in this file, which
are not as easy to fix :(
src/utils_avltree.c