From f37fe8cb10783de2f75e3088f454090f44da7253 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 13 Jan 2016 00:08:23 +0100 Subject: [PATCH] FIX: Coverity, Unchecked return value, CID #121288, lets do the same check that is everywhere is this call is used. --- client/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.39.2