1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-05 19:31:35 +00:00

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

Fix error while JSON::parse with empty string
This commit is contained in:
Rémi Verschelde
2017-01-15 10:45:41 +01:00
committed by GitHub

View File

@@ -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': {