summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-04-11 23:03:36 -0700
committerChris Robinson <[email protected]>2010-04-11 23:03:36 -0700
commit000d848f0b668a2a5048ee7c7d1ab71e69f3ddb3 (patch)
treecde9c09a04c89e7fb0c3857d3cf9d7f4e83a3c54 /Alc
parent3c5007352e94f62345796e5f36e80e563769b20a (diff)
Return immediately when no layout is specified
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index b4b1b68e..2deb993d 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -127,6 +127,9 @@ static ALvoid SetSpeakerArrangement(const char *name, ALfloat SpeakerAngle[OUTPU
strncpy(layout_str, GetConfigValue(NULL, name, ""), sizeof(layout_str));
layout_str[255] = 0;
+ if(!layout_str[0])
+ return;
+
next = confkey = layout_str;
while(next && *next)
{