diff --git a/cpp/INIReader.cpp b/cpp/INIReader.cpp index 944a678..45ef9fe 100644 --- a/cpp/INIReader.cpp +++ b/cpp/INIReader.cpp @@ -109,6 +109,6 @@ int INIReader::ValueHandler(void* user, const char* section, const char* name, string key = MakeKey(section, name); if (reader->_values[key].size() > 0) reader->_values[key] += "\n"; - reader->_values[key] += value; + reader->_values[key] += value ? value : ""; return 1; }