🔨 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:
Niels Lohmann 2017-07-22 16:41:42 +02:00
parent d53ef95067
commit 5b5f0090a1
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -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())
{