From d0b94a5dab1732ed63809a1cfa6d957a0951bd00 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 12:12:31 +0200 Subject: [PATCH] ascent plugin: len is unsigned [src/ascent.c:157]: (style) Checking if unsigned variable 'len' is less than zero. --- src/ascent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ascent.c b/src/ascent.c index d38e8591..26f3a11a 100644 --- 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) -- 2.30.2