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 66f1228 commit 1503ff2Copy full SHA for 1503ff2
src/cbang/api/handler/TimeseriesHandler.cpp
@@ -169,9 +169,10 @@ void TimeseriesHandler::process() {
169
LOG_DEBUG(3, "Last value success=" << (success ? "true" : "false"));
170
171
if (success) {
172
+ SmartPointer<string> s = new string(value);
173
SmartPointer<JSON::ValuePtr> last;
174
- auto run = [=] () {*last = JSON::Reader::parse(value);};
175
+ auto run = [=] () {*last = JSON::Reader::parse(*s);};
176
177
auto done = [=] (bool success) {
178
LOG_DEBUG(3, "Parsed last value success="
0 commit comments