mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-03-04 07:27:22 +01:00
Merge pull request #573 from ya1gaurav/patch-39
Fix crash issue due to NULL value.
This commit is contained in:
commit
264c3edca7
@ -398,6 +398,7 @@ Value::Value(double value) {
|
||||
|
||||
Value::Value(const char* value) {
|
||||
initBasic(stringValue, true);
|
||||
JSON_ASSERT_MESSAGE(value != NULL, "Null Value Passed to Value Constructor");
|
||||
value_.string_ = duplicateAndPrefixStringValue(value, static_cast<unsigned>(strlen(value)));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user