0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

ircd::json: Fix an empty string test.

This commit is contained in:
Jason Volk 2017-12-12 13:34:44 -07:00
parent 80931e4e86
commit 42246d8d5f

View file

@ -1374,7 +1374,7 @@ const
!bool(integer);
case STRING:
return !string || !len || string_view{*this} == empty_string;
return !string || !len || (serial && string_view{*this} == empty_string);
case OBJECT:
return serial? !len || string_view{*this} == empty_object: