0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 07:20:55 +01:00

ircd::json: Fix value copy to closure.

This commit is contained in:
Jason Volk 2020-02-07 12:47:17 -08:00
parent d512ef1006
commit a7e97f124e

View file

@ -3593,9 +3593,9 @@ ircd::json::value::value(const std::string &s,
{ {
const string_view sv{s}; const string_view sv{s};
create_string(serialized(sv), [&sv] create_string(serialized(sv), [&sv]
(mutable_buffer buf) (mutable_buffer &buffer)
{ {
json::stringify(buf, sv); json::stringify(buffer, sv);
}); });
} }