Skip to content

Commit

Permalink
Properly check if /proc/cpuinfo opened
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Sep 8, 2016
1 parent 742f181 commit c3c283a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Alc/helpers.c
Expand Up @@ -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
{
Expand Down

0 comments on commit c3c283a

Please sign in to comment.