aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhilipp Stephani2020-12-14 21:25:11 +0100
committerPhilipp Stephani2021-04-11 22:15:03 +0200
commitd37f0f3ac34f09830a881280131980f875d075d3 (patch)
tree274c48b74203da0815bab1fa55619a08a7f9de6b /src
parentc8d542fd593f06b85d4b7b712378a4f84ec4d2b3 (diff)
downloademacs-d37f0f3ac34f09830a881280131980f875d075d3.tar.gz
emacs-d37f0f3ac34f09830a881280131980f875d075d3.zip
* src/emacs.c (load_seccomp): Consistently check for nonzero result
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c2
1 files changed, 1 insertions, 1 deletions
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)
1079 file); 1079 file);
1080 goto out; 1080 goto out;
1081 } 1081 }
1082 if (emacs_close (fd) < 0) 1082 if (emacs_close (fd) != 0)
1083 emacs_perror ("close"); /* not a fatal error */ 1083 emacs_perror ("close"); /* not a fatal error */
1084 fd = -1; 1084 fd = -1;
1085 program.len = count; 1085 program.len = count;