summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-15 01:37:01 -0700
committerChris Robinson <[email protected]>2014-05-15 01:37:01 -0700
commit028bd9767cdc6099cef7cad78b8512761dd88b69 (patch)
treea1d15764e55b6023b5ce085ddd6f48f8b9566814 /Alc
parent042003896f79881b1a8cd4a89d7e516792b83e4a (diff)
Don't bother stripping whitespace from comments
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alcConfig.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c
index a058029e..2c9aef41 100644
--- a/Alc/alcConfig.c
+++ b/Alc/alcConfig.c
@@ -193,11 +193,7 @@ static void LoadConfigFromFile(FILE *f)
char value[256] = "";
comment = strchr(buffer, '#');
- if(comment)
- {
- *(comment++) = 0;
- comment = rstrip(lstrip(comment));
- }
+ if(comment) *(comment++) = 0;
line = rstrip(lstrip(buffer));
if(!line[0])