Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e2b9f676
Commit
e2b9f676
authored
Sep 14, 2017
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make compiler happy with the 'fall through' comments.
parent
c94fb7b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
strings/json_lib.c
strings/json_lib.c
+4
-3
No files found.
strings/json_lib.c
View file @
e2b9f676
...
...
@@ -1139,21 +1139,21 @@ int json_path_setup(json_path_t *p,
case
PS_EKY
:
p
->
last_step
->
key_end
=
p
->
s
.
c_str
-
c_len
;
state
=
PS_KEY
;
/*
Note no 'continue' here.
*/
/*
fall through
*/
case
PS_KEY
:
p
->
last_step
++
;
if
(
p
->
last_step
-
p
->
steps
>=
JSON_DEPTH_LIMIT
)
return
p
->
s
.
error
=
JE_DEPTH
;
p
->
types_used
|=
p
->
last_step
->
type
=
JSON_PATH_KEY
|
double_wildcard
;
double_wildcard
=
JSON_PATH_KEY_NULL
;
/*
Note no 'continue' here.
*/
/*
fall through
*/
case
PS_KEYX
:
p
->
last_step
->
key
=
p
->
s
.
c_str
;
continue
;
case
PS_EAR
:
p
->
last_step
->
key_end
=
p
->
s
.
c_str
-
c_len
;
state
=
PS_AR
;
/*
Note no 'continue' here.
*/
/*
fall through
*/
case
PS_AR
:
p
->
last_step
++
;
if
(
p
->
last_step
-
p
->
steps
>=
JSON_DEPTH_LIMIT
)
...
...
@@ -1705,6 +1705,7 @@ int json_get_path_next(json_engine_t *je, json_path_t *p)
return
1
;
/* Now we have je.state == JST_VALUE, so let's handle it. */
/* fall through */
case
JST_VALUE
:
if
(
json_read_value
(
je
))
return
1
;
...
...
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