Skip to content

Commit

Permalink
Formatter: json: clear pending stream string
Browse files Browse the repository at this point in the history
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
  • Loading branch information
yehudasa committed Nov 30, 2018
1 parent 68ddaee commit 2beb82a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/Formatter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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("");
}
}

Expand Down

0 comments on commit 2beb82a

Please sign in to comment.