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

src/bind.c

index f2cd167..e6855d2 100644 (file)
@@ -277,7 +277,7 @@ static size_t bind_curl_callback (void *buf, size_t size, /* {{{ */
 {
   size_t len = size * nmemb;
 
-  if (len <= 0)
+  if (len == 0)
     return (len);
 
   if ((bind_buffer_fill + len) >= bind_buffer_size)