diff options
author | Chris Robinson <[email protected]> | 2010-04-11 23:03:36 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-04-11 23:03:36 -0700 |
commit | 000d848f0b668a2a5048ee7c7d1ab71e69f3ddb3 (patch) | |
tree | cde9c09a04c89e7fb0c3857d3cf9d7f4e83a3c54 /Alc | |
parent | 3c5007352e94f62345796e5f36e80e563769b20a (diff) |
Return immediately when no layout is specified
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |