1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[kbd] Test commit. Change <= 0 to < 0

I'm trying to debug mouse issues.
This commit is contained in:
Witold Filipczyk 2024-01-03 21:37:07 +01:00
parent 1d677720a4
commit 84f6a08f83

View File

@ -1245,7 +1245,7 @@ in_kbd(struct itrm *itrm)
r = safe_read(itrm->in.std, itrm->in.queue.data + itrm->in.queue.len,
ITRM_IN_QUEUE_SIZE - itrm->in.queue.len);
if (r <= 0) {
if (r < 0) {
free_itrm(itrm);
return;
}