Skip to content

Commit

Permalink
Make INIReader not crash when INI_ALLOW_NO_VALUE enabled (with value …
Browse files Browse the repository at this point in the history
…NULL)
  • Loading branch information
benhoyt committed Dec 14, 2019
1 parent d0a152d commit 1e7a61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/INIReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 1e7a61d

Please sign in to comment.