Skip to content

Commit

Permalink
Increment depth on wordFromStream
Browse files Browse the repository at this point in the history
  • Loading branch information
sgerbino committed Jan 22, 2019
1 parent 6e0c93d commit 2227ffe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/fc/include/fc/io/json_relaxed.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ namespace fc { namespace json_relaxed
template<typename T, bool strict>
variant wordFromStream( T& in, uint32_t depth = 0 )
{
depth++;
fc::string token = tokenFromStream( in, depth );

FC_ASSERT( token.length() > 0 );
Expand Down

0 comments on commit 2227ffe

Please sign in to comment.