]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/emacs.c (load_seccomp): Consistently check for nonzero result
authorPhilipp Stephani <phst@google.com>
Mon, 14 Dec 2020 20:25:11 +0000 (21:25 +0100)
committerPhilipp Stephani <phst@google.com>
Sun, 11 Apr 2021 20:15:03 +0000 (22:15 +0200)
src/emacs.c

index 694d975ec3d7271c32785e10c2c205d7a3ddf580..362e4a2cc5acb608253195fa4d481ea01e70c38c 100644 (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;