Silence another Coverity warning

This commit is contained in:
twinaphex 2017-06-28 06:59:00 +02:00
parent 39679ccdce
commit fa8db9b4d2

View File

@ -39,7 +39,9 @@ void linux_terminal_restore_input(void)
if (oldKbmd == 0xffff)
return;
ioctl(0, KDSKBMODE, oldKbmd);
if (ioctl(0, KDSKBMODE, oldKbmd) < 0)
return;
linux_terminal_flush();
oldKbmd = 0xffff;