mirror of
https://github.com/nlohmann/json.git
synced 2025-01-20 00:03:02 +08:00
🔨 trying to fix the sanitizer error
Travis found an error with Clang 3.8's sanitizers, see https://travis-ci.org/nlohmann/json/jobs/256366699. Unfortunately, I cannot reproduce this error with clang version 6.0.0 (trunk 308825) locally. However, this seems to be an issue, because so far, we did not reset a value after moving from it.
This commit is contained in:
parent
d53ef95067
commit
5b5f0090a1
@ -3281,6 +3281,7 @@ class parser
|
||||
while (true)
|
||||
{
|
||||
// parse value
|
||||
value = value_t::discarded;
|
||||
parse_internal(keep, value);
|
||||
if (keep and not value.is_discarded())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user