Fix test for != 0 that should be > 0.
This commit is contained in:
parent
e187f56a06
commit
8f643f6169
@ -115,7 +115,7 @@ ofw_cons_poll()
|
||||
if (saved_char != -1)
|
||||
return 1;
|
||||
|
||||
if (OF_read(stdin, &ch, 1) != 0) {
|
||||
if (OF_read(stdin, &ch, 1) > 0) {
|
||||
saved_char = ch;
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user