mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-07 01:04:55 +02:00
Ran clang-format again.
This commit is contained in:
parent
445328ace6
commit
3a0c4fcc82
@ -83,7 +83,8 @@ static inline char *duplicateStringValue(const char *value,
|
|||||||
length = Value::maxInt - 1;
|
length = Value::maxInt - 1;
|
||||||
|
|
||||||
char *newString = static_cast<char *>(malloc(length + 1));
|
char *newString = static_cast<char *>(malloc(length + 1));
|
||||||
JSON_ASSERT_MESSAGE(newString != 0, "in Json::Value::duplicateStringValue(): "
|
JSON_ASSERT_MESSAGE(newString != 0,
|
||||||
|
"in Json::Value::duplicateStringValue(): "
|
||||||
"Failed to allocate string value buffer");
|
"Failed to allocate string value buffer");
|
||||||
memcpy(newString, value, length);
|
memcpy(newString, value, length);
|
||||||
newString[length] = 0;
|
newString[length] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user