From 6fd6c8b3ddd8fe71ccfdabb9127cc28dd6087aa9 Mon Sep 17 00:00:00 2001 From: Christoph Hasse Date: Fri, 16 Jul 2021 17:02:13 +0200 Subject: [PATCH] fix: SIGSEGV on parsing of config file. (introduced in main by clang-tidy fix) --- src/ini.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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