We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 705613d commit ba69e21Copy full SHA for ba69e21
src/ArduinoJson/Memory/StringBuffer.hpp
@@ -39,8 +39,9 @@ class StringBuffer {
39
40
void save(VariantData* data) {
41
ARDUINOJSON_ASSERT(node_ != nullptr);
42
- if (isTinyString(node_->data, size_))
43
- data->setTinyString(node_->data, static_cast<uint8_t>(size_));
+ const char* s = node_->data;
+ if (isTinyString(s, size_))
44
+ data->setTinyString(s, static_cast<uint8_t>(size_));
45
else
46
data->setOwnedString(commitStringNode());
47
}
0 commit comments