summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f81aafe)
raw | patch | inline | side by side (parent: f81aafe)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 10:06:38 +0000 (12:06 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 10:06:38 +0000 (12:06 +0200) |
[src/curl_json.c:119]: (style) Checking if unsigned variable 'len' is less than zero.
src/curl_json.c | patch | blob | history |
diff --git a/src/curl_json.c b/src/curl_json.c
index 79ae68fced0293ef392fa777385d022d3e9fb0e0..b19730b855a47706be9313740dc685cd4e1ac133 100644 (file)
--- a/src/curl_json.c
+++ b/src/curl_json.c
len = size * nmemb;
- if (len <= 0)
+ if (len == 0)
return (len);
db = user_data;