diff options
Diffstat (limited to 'AK/JsonParser.cpp')
-rw-r--r-- | AK/JsonParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/JsonParser.cpp b/AK/JsonParser.cpp index 4d497cb1b5..fafb6736a6 100644 --- a/AK/JsonParser.cpp +++ b/AK/JsonParser.cpp @@ -234,7 +234,6 @@ Optional<JsonValue> JsonParser::parse_number() } StringView number_string(number_buffer.data(), number_buffer.size()); - StringView fraction_string(fraction_buffer.data(), fraction_buffer.size()); #ifndef KERNEL if (is_double) { @@ -250,6 +249,7 @@ Optional<JsonValue> JsonParser::parse_number() whole = number.value(); } + StringView fraction_string(fraction_buffer.data(), fraction_buffer.size()); auto fraction_string_uint = fraction_string.to_uint(); if (!fraction_string_uint.has_value()) return {}; |