FIX: Coverity, Unchecked return value, CID #121288, lets do the same check that is everywhere is this call is used.

This commit is contained in:
iceman1001 2016-01-13 00:08:23 +01:00
parent 3f3fdce685
commit f37fe8cb10

View file

@ -21,7 +21,7 @@ int ukbhit(void)
int error; int error;
static struct termios Otty, Ntty; static struct termios Otty, Ntty;
tcgetattr( 0, &Otty); if ( tcgetattr( 0, &Otty) == -1) return false;
Ntty = Otty; Ntty = Otty;
Ntty.c_iflag = 0; /* input mode */ Ntty.c_iflag = 0; /* input mode */