From 81760a5d7417db2411f61378e773bff84b342e88 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 29 Nov 2018 06:47:49 -0800 Subject: [PATCH] Formatter: json: clear pending stream string Signed-off-by: Yehuda Sadeh --- src/common/Formatter.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/Formatter.cc b/src/common/Formatter.cc index 2a013e18d6b..703322e8a0b 100644 --- a/src/common/Formatter.cc +++ b/src/common/Formatter.cc @@ -254,6 +254,7 @@ void JSONFormatter::finish_pending_string() if (m_is_pending_string) { m_is_pending_string = false; add_value(m_pending_name.c_str(), m_pending_string.str(), true); + m_pending_string.str(""); } } -- 2.39.5