summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8a455c5)
raw | patch | inline | side by side (parent: 8a455c5)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 10:09:33 +0000 (12:09 +0200) | ||
committer | Ruben 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 | patch | blob | history |
diff --git a/src/bind.c b/src/bind.c
index f2cd1677d8a4f7e854970ab0c6ef1cd5f3f40868..e6855d22ebb7c61ba944ed893c12b28e29e21ffd 100644 (file)
--- a/src/bind.c
+++ b/src/bind.c
{
size_t len = size * nmemb;
- if (len <= 0)
+ if (len == 0)
return (len);
if ((bind_buffer_fill + len) >= bind_buffer_size)