From: Philipp Stephani Date: Mon, 14 Dec 2020 20:25:11 +0000 (+0100) Subject: * src/emacs.c (load_seccomp): Consistently check for nonzero result X-Git-Tag: emacs-28.0.90~2900 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d37f0f3ac34f09830a881280131980f875d075d3;p=emacs.git * src/emacs.c (load_seccomp): Consistently check for nonzero result --- 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;