diff --git a/src/ini.cpp b/src/ini.cpp index ec1c010c..d946552c 100755 --- a/src/ini.cpp +++ b/src/ini.cpp @@ -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