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:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user