mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 18:57:12 +08:00
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:
parent
3f3fdce685
commit
f37fe8cb10
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ int ukbhit(void)
|
|||
int error;
|
||||
static struct termios Otty, Ntty;
|
||||
|
||||
tcgetattr( 0, &Otty);
|
||||
if ( tcgetattr( 0, &Otty) == -1) return false;
|
||||
Ntty = Otty;
|
||||
|
||||
Ntty.c_iflag = 0; /* input mode */
|
||||
|
|
Loading…
Reference in a new issue