]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/emacs.c (load_seccomp): Fix condition.
authorPhilipp Stephani <phst@google.com>
Sat, 10 Apr 2021 19:19:50 +0000 (21:19 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 10 Apr 2021 21:04:04 +0000 (23:04 +0200)
src/emacs.c

index cb1361fe46da002fbf29d917e8825c37e6890b13..1fecf1fa4b49fd990687bd088f022422ce89a622 100644 (file)
@@ -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;