diff options
author | Chris Robinson <[email protected]> | 2014-02-23 09:54:26 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-02-23 09:54:26 -0800 |
commit | 0626a44eb1df787c075d0e4ea208802f82acd1e0 (patch) | |
tree | f0f5383254b49b8a5b773926a5bc6a1e78dd571f | |
parent | 29e0af5ef052a3602f9b7935d6002c6d2ae5e8cb (diff) |
Fix indentation
-rw-r--r-- | Alc/alcConfig.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c index 98c0df32..42aff560 100644 --- a/Alc/alcConfig.c +++ b/Alc/alcConfig.c @@ -123,26 +123,26 @@ static void LoadConfigFromFile(FILE *f) * manually. */ if(strcmp(value, "\"\"") == 0 || strcmp(value, "''") == 0) value[0] = 0; - } - else if(sscanf(line, "%255[^=] %255[=]", key, value) == 2) - { - /* Special case for 'key =' */ - value[0] = 0; - } - else - { - ERR("config parse error: malformed option line: \"%s\"\n\n", line); - continue; - } - rstrip(key); - - if(curSection[0] != 0) - { - size_t len = strlen(curSection); - memmove(&key[len+1], key, sizeof(key)-1-len); - key[len] = '/'; - memcpy(key, curSection, len); - } + } + else if(sscanf(line, "%255[^=] %255[=]", key, value) == 2) + { + /* Special case for 'key =' */ + value[0] = 0; + } + else + { + ERR("config parse error: malformed option line: \"%s\"\n\n", line); + continue; + } + rstrip(key); + + if(curSection[0] != 0) + { + size_t len = strlen(curSection); + memmove(&key[len+1], key, sizeof(key)-1-len); + key[len] = '/'; + memcpy(key, curSection, len); + } /* Check if we already have this option set */ ent = cfgBlock.entries; |