* src/emacs.c (load_seccomp): Consistently check for nonzero result

This commit is contained in:
Philipp Stephani 2020-12-14 21:25:11 +01:00
parent c8d542fd59
commit d37f0f3ac3

View file

@ -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;