]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/util.c
FIX: Coverity, Unchecked return value, CID #121288, lets do the same check that...
[proxmark3-svn] / client / util.c
index de6443cfcd7ab48a3c927c91b6f884f32ad3171d..5b461649f8451222b26c5be48b36e30f0f8e5b4b 100644 (file)
@@ -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                */
Impressum, Datenschutz