From c67497ce66e4c6f4bad82f952cd49886ef6bef00 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 18 Aug 2021 10:25:14 +0200 Subject: [PATCH] more: Calling open without checking return value [coverity scan] Signed-off-by: Karel Zak --- text-utils/more.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text-utils/more.c b/text-utils/more.c index 5c068f1f38..0d081a5312 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1229,7 +1229,7 @@ static void __attribute__((__format__ (__printf__, 3, 4))) int errsv; if (!isatty(STDIN_FILENO)) { close(STDIN_FILENO); - open("/dev/tty", 0); + ignore_result( open("/dev/tty", 0) ); } reset_tty(ctl); -- 2.47.2