From 496a46b32db9a3c32a846b8a3c872891303a1ec4 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Sat, 10 Apr 2021 21:19:50 +0200 Subject: [PATCH] * src/emacs.c (load_seccomp): Fix condition. --- src/emacs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emacs.c b/src/emacs.c index cb1361fe46d..1fecf1fa4b4 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1091,7 +1091,7 @@ load_seccomp (const char *file) success = true; out: - if (fd < 0) + if (0 <= fd) emacs_close (fd); free (buffer); return success; -- 2.39.2