mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 08:03:04 +01:00
Applied patch for config_file.cpp. Thanks to Pirtea Calin Iancu.
This commit is contained in:
parent
e9295be3fe
commit
b6ed8189d6
@ -169,7 +169,7 @@ string ConfigFile::getString(const string& key)
|
||||
|
||||
string ConfigFile::parseKeyFrom(const string& inputLine, string::size_type& endPos)
|
||||
{
|
||||
endPos = inputLine.find_first_of("= \t");
|
||||
endPos = inputLine.find_first_of("=\t");
|
||||
if (endPos == string::npos)
|
||||
{
|
||||
return inputLine;
|
||||
@ -257,6 +257,7 @@ void ConfigFile::loadConfig()
|
||||
string::size_type endPos;
|
||||
|
||||
string key = parseKeyFrom(inputLine, endPos);
|
||||
stripTrailingWhiteSpace(key);
|
||||
string value = parseValueFrom(inputLine, endPos);
|
||||
|
||||
// std::cout << "adding \"" << key << "\" \"" << value << "\"" << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user