mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-09 04:14:22 +01:00
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 <b.bilas@grinn-global.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user