Skip to content

Commit 796768f

Browse files
committed
remove static null value
1 parent f2ffc67 commit 796768f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/boost/json/impl/serializer.ipp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,9 @@ read(char* dest, std::size_t size)
801801
{
802802
if(! fn0_)
803803
{
804-
static value const null;
804+
// the object is not going to be used if suspended, so we don't need
805+
// it to outlive the call
806+
value const null;
805807
reset(&null);
806808
}
807809

0 commit comments

Comments
 (0)