From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:06:38 +0000 (+0200) Subject: curl_json plugin: len is unsigned X-Git-Tag: collectd-5.6.0~329^2~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bed961ab910f1cf5d96d1e60af0227431a38bbf3;p=collectd.git curl_json plugin: len is unsigned [src/curl_json.c:119]: (style) Checking if unsigned variable 'len' is less than zero. --- diff --git a/src/curl_json.c b/src/curl_json.c index 79ae68fc..b19730b8 100644 --- a/src/curl_json.c +++ b/src/curl_json.c @@ -116,7 +116,7 @@ static size_t cj_curl_callback (void *buf, /* {{{ */ len = size * nmemb; - if (len <= 0) + if (len == 0) return (len); db = user_data;