From: iceman1001 Date: Tue, 12 Jan 2016 23:08:23 +0000 (+0100) Subject: FIX: Coverity, Unchecked return value, CID #121288, lets do the same check that... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/f37fe8cb10783de2f75e3088f454090f44da7253 FIX: Coverity, Unchecked return value, CID #121288, lets do the same check that is everywhere is this call is used. --- diff --git a/client/util.c b/client/util.c index de6443cf..5b461649 100644 --- a/client/util.c +++ b/client/util.c @@ -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 */