[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/seccomp-no-gnulib-2 cc56e4b 3/4: * src/emacs.c (load_seccomp): F
From: |
Philipp Stephani |
Subject: |
scratch/seccomp-no-gnulib-2 cc56e4b 3/4: * src/emacs.c (load_seccomp): Fix incorrect test. |
Date: |
Mon, 5 Apr 2021 12:56:57 -0400 (EDT) |
branch: scratch/seccomp-no-gnulib-2
commit cc56e4bb6acb47b6a0bb1a9cafb6f4f5f9786874
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 35caf2b..bb2a0bb 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -977,7 +977,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;