Commit 47365e06 by Rémi Verschelde Committed by GitHub

Merge pull request #7533 from GodotExplorer/pr-json-empty-string

Fix error while JSON::parse with empty string
parents 5dde810a c8e9937e
...@@ -100,7 +100,7 @@ String JSON::print(const Variant& p_var) { ...@@ -100,7 +100,7 @@ String JSON::print(const Variant& p_var) {
Error JSON::_get_token(const CharType *p_str, int &idx, int p_len, Token& r_token,int &line,String &r_err_str) { Error JSON::_get_token(const CharType *p_str, int &idx, int p_len, Token& r_token,int &line,String &r_err_str) {
while (true) { while (p_len > 0) {
switch(p_str[idx]) { switch(p_str[idx]) {
case '\n': { case '\n': {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment