From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:02:14 +0000 (+0200) Subject: curl_xml plugin: len is unsigned X-Git-Tag: collectd-5.6.0~329^2~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=58b80b545155ff7353de3a543bdf1d5afae02275;p=collectd.git curl_xml plugin: len is unsigned [src/curl_xml.c:117]: (style) Checking if unsigned variable 'len' is less than zero. --- diff --git a/src/curl_xml.c b/src/curl_xml.c index 58cb42db..86cc87f7 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -114,7 +114,7 @@ static size_t cx_curl_callback (void *buf, /* {{{ */ return (0); } - if (len <= 0) + if (len == 0) return (len); if ((db->buffer_fill + len) >= db->buffer_size)