Code

curl plugin: len is unsigned
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:07:23 +0000 (12:07 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 23 Apr 2016 10:07:33 +0000 (12:07 +0200)
[src/curl.c:98]: (style) Checking if unsigned variable 'len' is less than zero.

src/curl.c

index 4bb58e2c9925e5984d340fda2105b6a44f0278fd..2ed09225290146418215b4a3b801c5da5545149a 100644 (file)
@@ -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;