fix: SIGSEGV on parsing of config file. (introduced in main by clang-tidy fix)

This commit is contained in:
Christoph Hasse 2021-07-16 17:02:13 +02:00
parent 22b876d278
commit 6fd6c8b3dd

View File

@ -227,8 +227,9 @@ int Exiv2::ini_parse(const char* filename, ini_handler handler, void* user)
return error;
}
INIReader::INIReader(const std::string& filename) : _error(ini_parse(filename.c_str(), ValueHandler, this))
INIReader::INIReader(const std::string& filename)
{
_error = ini_parse(filename.c_str(), ValueHandler, this);
}
int INIReader::ParseError() const