]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: Coverity, Unchecked return value, CID #121288, lets do the same check that...
authoriceman1001 <iceman@iuse.se>
Tue, 12 Jan 2016 23:08:23 +0000 (00:08 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 12 Jan 2016 23:08:23 +0000 (00:08 +0100)
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