Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
47365e06
Commit
47365e06
authored
Jan 15, 2017
by
Rémi Verschelde
Committed by
GitHub
Jan 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7533 from GodotExplorer/pr-json-empty-string
Fix error while JSON::parse with empty string
parents
5dde810a
c8e9937e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
json.cpp
core/io/json.cpp
+1
-1
No files found.
core/io/json.cpp
View file @
47365e06
...
@@ -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'
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment