summaryrefslogtreecommitdiffstats
path: root/package/openal/0003-Properly-check-if-proc-cpuinfo-opened.patch
blob: 60a93c01e26439e75e3a2a830a6db95c4cf44772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From c3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1 Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Thu, 8 Sep 2016 02:02:09 -0700
Subject: [PATCH] Properly check if /proc/cpuinfo opened

[Upstream commit: https://github.com/kcat/openal-soft/commit/c3c283a0b5d0130afafaa2a5b6ce6fbc30b6e6a1]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 Alc/helpers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Alc/helpers.c b/Alc/helpers.c
index 4ffda46c..26ed535a 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -234,7 +234,7 @@ void FillCPUCaps(ALuint capfilter)
 #endif
 #ifdef HAVE_NEON
     FILE *file = fopen("/proc/cpuinfo", "rt");
-    if(file)
+    if(!file)
         ERR("Failed to open /proc/cpuinfo, cannot check for NEON support\n");
     else
     {
OpenPOWER on IntegriCloud