summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a8c949f)
raw | patch | inline | side by side (parent: a8c949f)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 10:12:31 +0000 (12:12 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 10:12:31 +0000 (12:12 +0200) |
[src/ascent.c:157]: (style) Checking if unsigned variable 'len' is less than zero.
src/ascent.c | patch | blob | history |
diff --git a/src/ascent.c b/src/ascent.c
index d38e85916e937468c13dfb1d33e6706991fd261b..26f3a11a4480a14d9e43105d2ab2dd964c95224a 100644 (file)
--- a/src/ascent.c
+++ b/src/ascent.c
@@ -154,7 +154,7 @@ static size_t ascent_curl_callback (void *buf, size_t size, size_t nmemb, /* {{{
{
size_t len = size * nmemb;
- if (len <= 0)
+ if (len == 0)
return (len);
if ((ascent_buffer_fill + len) >= ascent_buffer_size)