From d37f0f3ac34f09830a881280131980f875d075d3 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Mon, 14 Dec 2020 21:25:11 +0100 Subject: [PATCH] * src/emacs.c (load_seccomp): Consistently check for nonzero result --- src/emacs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emacs.c b/src/emacs.c index 694d975ec3d..362e4a2cc5a 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1079,7 +1079,7 @@ load_seccomp (const char *file) file); goto out; } - if (emacs_close (fd) < 0) + if (emacs_close (fd) != 0) emacs_perror ("close"); /* not a fatal error */ fd = -1; program.len = count; -- 2.39.2