author | Florian Forster <octo@collectd.org> | |
Wed, 17 Jun 2015 06:55:42 +0000 (08:55 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 17 Jun 2015 06:55:44 +0000 (08:55 +0200) | ||
commit | 86ef26818f3a1af5afb4842e9c97c34ffe98bafa | |
tree | 3a6a6fa99abdec69b9e382cf8b5b0a249ee12bbd | tree | snapshot |
parent | 6efc94f59c38e86309078fb9e20c78a2e9c8ff59 | commit | diff |
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 :(
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 | diff | blob | history |