From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:09:33 +0000 (+0200) Subject: bind plugin: len is unsigned X-Git-Tag: collectd-5.6.0~329^2~4 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3c382b5e60af09dab5f4fe191d4206a36bc1f9c1;p=collectd.git bind plugin: len is unsigned [src/bind.c:280]: (style) Checking if unsigned variable 'len' is less than zero. --- diff --git a/src/bind.c b/src/bind.c index f2cd1677..e6855d22 100644 --- a/src/bind.c +++ b/src/bind.c @@ -277,7 +277,7 @@ static size_t bind_curl_callback (void *buf, size_t size, /* {{{ */ { size_t len = size * nmemb; - if (len <= 0) + if (len == 0) return (len); if ((bind_buffer_fill + len) >= bind_buffer_size)