diff options
-rw-r--r-- | Alc/alcConfig.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c index accc0716..98c0df32 100644 --- a/Alc/alcConfig.c +++ b/Alc/alcConfig.c @@ -223,19 +223,20 @@ void ReadALConfig(void) else next = buffer; if(next[0] != '/') - continue; + WARN("Ignoring XDG config dir: %s\n", next); + else { size_t len = strlen(next); strncpy(next+len, "/alsoft.conf", buffer+sizeof(buffer)-next-len); buffer[sizeof(buffer)-1] = 0; - } - TRACE("Loading config %s...\n", next); - f = fopen(next, "r"); - if(f) - { - LoadConfigFromFile(f); - fclose(f); + TRACE("Loading config %s...\n", next); + f = fopen(next, "r"); + if(f) + { + LoadConfigFromFile(f); + fclose(f); + } } if(next == buffer) break; |