emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d37f0f3: * src/emacs.c (load_seccomp): Consistently check for non


From: Philipp Stephani
Subject: master d37f0f3: * src/emacs.c (load_seccomp): Consistently check for nonzero result
Date: Sun, 11 Apr 2021 16:16:00 -0400 (EDT)

branch: master
commit d37f0f3ac34f09830a881280131980f875d075d3
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>

    * src/emacs.c (load_seccomp): Consistently check for nonzero result
---
 src/emacs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/emacs.c b/src/emacs.c
index 694d975..362e4a2 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]