From 31c0dff0295f35ca0eb513a7dd1c9168668999c6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Bi=C5=82as?= Date: Fri, 19 Jun 2020 04:14:42 +0200 Subject: [PATCH] src/http.c: fix checking pss's len member (#385) len member is a size_t type so it can't be less than 0 by definition. Signed-off-by: Bartosz Bilas --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index 3297c5c..461df49 100644 --- a/src/http.c +++ b/src/http.c @@ -212,7 +212,7 @@ int callback_http(struct lws *wsi, enum lws_callback_reasons reason, void *user, break; case LWS_CALLBACK_HTTP_WRITEABLE: - if (!pss->buffer || pss->len <= 0) { + if (!pss->buffer || pss->len == 0) { goto try_to_reuse; } -- 2.43.4