From bed961ab910f1cf5d96d1e60af0227431a38bbf3 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 12:06:38 +0200 Subject: [PATCH] curl_json plugin: len is unsigned [src/curl_json.c:119]: (style) Checking if unsigned variable 'len' is less than zero. --- src/curl_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/curl_json.c b/src/curl_json.c index 79ae68fc..b19730b8 100644 --- a/src/curl_json.c +++ b/src/curl_json.c @@ -116,7 +116,7 @@ static size_t cj_curl_callback (void *buf, /* {{{ */ len = size * nmemb; - if (len <= 0) + if (len == 0) return (len); db = user_data; -- 2.30.2