From 1e924f8fbd8f1ff598ffacd36385364f65469a86 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:50:48 +0200 Subject: [PATCH] nginx plugin: len is unsigned [src/nginx.c:74]: (style) Checking if unsigned variable 'len' is less than zero. --- src/nginx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nginx.c b/src/nginx.c index e493cc94..7587c1f9 100644 --- a/src/nginx.c +++ b/src/nginx.c @@ -71,7 +71,7 @@ static size_t nginx_curl_callback (void *buf, size_t size, size_t nmemb, len = (sizeof (nginx_buffer) - 1) - nginx_buffer_len; } - if (len <= 0) + if (len == 0) return (len); memcpy (&nginx_buffer[nginx_buffer_len], buf, len); -- 2.30.2