0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 12:18:54 +02: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};
create_string(serialized(sv), [&sv]
(mutable_buffer buf)
(mutable_buffer &buffer)
{
json::stringify(buf, sv);
json::stringify(buffer, sv);
});
}