[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/seccomp-no-gnulib-2 cc82fa6 1/2: * src/emacs.c (load_seccomp): F
From: |
Philipp Stephani |
Subject: |
scratch/seccomp-no-gnulib-2 cc82fa6 1/2: * src/emacs.c (load_seccomp): Fix incorrect test. |
Date: |
Thu, 31 Dec 2020 10:14:10 -0500 (EST) |
branch: scratch/seccomp-no-gnulib-2
commit cc82fa65aa107e345fe551ed60c118bc44d14ec1
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>
* src/emacs.c (load_seccomp): Fix incorrect test.
---
src/emacs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/emacs.c b/src/emacs.c
index 955ee15..0410877 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -976,7 +976,7 @@ load_seccomp (const char *file)
bool success = false;
struct sock_fprog program = {0, NULL};
FILE *stream = fopen (file, "rb");
- if (file == NULL)
+ if (stream == NULL)
{
emacs_perror ("fopen");
goto out;