From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:12:31 +0000 (+0200) Subject: ascent plugin: len is unsigned X-Git-Tag: collectd-5.6.0~329^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d0b94a5dab1732ed63809a1cfa6d957a0951bd00;p=collectd.git ascent plugin: len is unsigned [src/ascent.c:157]: (style) Checking if unsigned variable 'len' is less than zero. --- diff --git a/src/ascent.c b/src/ascent.c index d38e8591..26f3a11a 100644 --- a/src/ascent.c +++ b/src/ascent.c @@ -154,7 +154,7 @@ static size_t ascent_curl_callback (void *buf, size_t size, size_t nmemb, /* {{{ { size_t len = size * nmemb; - if (len <= 0) + if (len == 0) return (len); if ((ascent_buffer_fill + len) >= ascent_buffer_size)