aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcConfig.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-01-09 06:48:43 -0800
committerChris Robinson <[email protected]>2010-01-09 06:48:43 -0800
commit45f8efec414c7a5c26d6a4953cbc074b54231209 (patch)
tree35e604bdf3cd7f7fac81bbadc5ccb20e1d42c11d /Alc/alcConfig.c
parentef7df2416debb882c42124bddc07808c00a4503b (diff)
Return the default config string for empty entries
Diffstat (limited to 'Alc/alcConfig.c')
-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;
+ }
}
}
}