]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
Merge pull request #913 from 0x2b3bfa0/patch-1
authorpwpiwi <pwpiwi@users.noreply.github.com>
Thu, 13 Feb 2020 07:37:17 +0000 (08:37 +0100)
committerGitHub <noreply@github.com>
Thu, 13 Feb 2020 07:37:17 +0000 (08:37 +0100)
Fix #912: ukbhit() false positive

client/util.c

index 3b299c9a9854348678606402f23ccba707711216..4e93b8f55940b5de8a7e309616f6d1b5b4166357 100644 (file)
@@ -49,7 +49,7 @@ int ukbhit(void)
        error += tcsetattr(STDIN_FILENO, TCSANOW, &Otty);             // reset attributes
   }
 
-  return ( error == 0 ? cnt : -1 );
+  return cnt;
 }
 
 char getch(void)
Impressum, Datenschutz