diff options
author | Paul Joseph Davis <davisp@apache.org> | 2009-08-22 00:13:08 +0000 |
---|---|---|
committer | Paul Joseph Davis <davisp@apache.org> | 2009-08-22 00:13:08 +0000 |
commit | 14c6957b0b4bcda60cc5773df8b0b41f46811725 (patch) | |
tree | fffbcbec506257881036f8d18bf5dc7a4931af9b /src | |
parent | 4143b6805cddf61dfd0d43b712b598705bca1933 (diff) |
Fix bug that caused duplicate INI sections on write back.
Thanks to Bob Dionne finding the fix.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@806766 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_config_writer.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_config_writer.erl b/src/couchdb/couch_config_writer.erl index 08d4a5f5..4a859f8d 100644 --- a/src/couchdb/couch_config_writer.erl +++ b/src/couchdb/couch_config_writer.erl @@ -140,7 +140,7 @@ parse_module(Line, OldSection) -> nomatch -> OldSection; {match, [{Start, Length}]} -> - string:substr(Line, Start+1, Length-1) + string:substr(Line, Start+1, Length) end. %% @spec parse_variable(Line::string(), Option::string(), Value::string()) -> |