Fix error while JSON::parse with empty string
This commit is contained in:
parent
5dde810aa5
commit
c8e9937e21
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
||||
while (true) {
|
||||
while (p_len > 0) {
|
||||
switch(p_str[idx]) {
|
||||
|
||||
case '\n': {
|
||||
|
|
Loading…
Reference in a new issue