aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/portaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r--Alc/portaudio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c
index 94ae3048..8281da17 100644
--- a/Alc/portaudio.c
+++ b/Alc/portaudio.c
@@ -78,8 +78,6 @@ void *pa_load(void)
# define PALIB "libportaudio.so.2"
#endif
pa_handle = dlopen(PALIB, RTLD_NOW);
- if(!pa_handle)
- return NULL;
dlerror();
#define LOAD_FUNC(f) do { \
@@ -99,6 +97,9 @@ void *pa_load(void)
#define LOAD_FUNC(f) p##f = f
#endif
+ if(!pa_handle)
+ return NULL;
+
LOAD_FUNC(Pa_Initialize);
LOAD_FUNC(Pa_Terminate);
LOAD_FUNC(Pa_GetErrorText);