You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
Fix error while JSON::parse with empty string
This commit is contained in:
@@ -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': {
|
||||||
|
|||||||
Reference in New Issue
Block a user