aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/alcConfig.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c
index dbdf9639..de15dbf4 100644
--- a/Alc/alcConfig.c
+++ b/Alc/alcConfig.c
@@ -286,7 +286,11 @@ const char *GetConfigValue(const char *blockName, const char *keyName, const cha
for(j = 0;j < cfgBlocks[i].entryCount;j++)
{
if(strcasecmp(cfgBlocks[i].entries[j].key, keyName) == 0)
- return cfgBlocks[i].entries[j].value;
+ {
+ if(cfgBlocks[i].entries[j].value[0])
+ return cfgBlocks[i].entries[j].value;
+ return def;
+ }
}
}
}