From 58b80b545155ff7353de3a543bdf1d5afae02275 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 12:02:14 +0200 Subject: [PATCH] curl_xml plugin: len is unsigned [src/curl_xml.c:117]: (style) Checking if unsigned variable 'len' is less than zero. --- src/curl_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2