aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
{