aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/hrtf.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/hrtf.c')
-rw-r--r--Alc/hrtf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index a5aa4a6c..5da5bed3 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -315,10 +315,11 @@ const struct Hrtf *GetHrtf(ALCdevice *device)
void InitHrtf(void)
{
- char *fnamelist, *next;
+ char *fnamelist=NULL, *next=NULL;
+ const char *val;
- fnamelist = strdup(GetConfigValue(NULL, "hrtf_tables", ""));
- next = fnamelist;
+ if(ConfigValueStr(NULL, "hrtf_tables", &val))
+ next = fnamelist = strdup(val);
while(next && *next)
{
const ALubyte maxDelay = SRC_HISTORY_LENGTH-1;