From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:07:23 +0000 (+0200) Subject: curl plugin: len is unsigned X-Git-Tag: collectd-5.6.0~329^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c9f0a65bcf06b9cc875959657871f960e37929c2;p=collectd.git curl plugin: len is unsigned [src/curl.c:98]: (style) Checking if unsigned variable 'len' is less than zero. --- diff --git a/src/curl.c b/src/curl.c index 4bb58e2c..2ed09225 100644 --- a/src/curl.c +++ b/src/curl.c @@ -95,7 +95,7 @@ static size_t cc_curl_callback (void *buf, /* {{{ */ size_t len; len = size * nmemb; - if (len <= 0) + if (len == 0) return (len); wp = user_data;