Permalink
Browse files

Change config file parsing a bit

Now the first equals sign (=) is the one to be used as separator, not the last
one.
  • Loading branch information...
1 parent 7c7f33f commit 3c5ee9056f9ccd145dd14557ef9f711a51d7d112 @dmedvinsky dmedvinsky committed Jul 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Config.cpp
View
@@ -87,8 +87,8 @@ void Config::parseLine(string line)
if (!line.length() || line[0] == '#') {
return;
}
- int pos;
- for (pos = line.length() - 1; pos >= 0; pos--) {
+ int pos, len = line.length();
+ for (pos = 0; pos < len; pos++) {
if (line[pos] == '=') {
break;
}

0 comments on commit 3c5ee90

Please sign in to comment.