Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Kia
hammer-sandbox
Commits
4a2f5887
Commit
4a2f5887
authored
Oct 13, 2020
by
Denley
Committed by
Andrea Shepard
Oct 27, 2020
Browse files
Add missing check in h_do_parse() for parser->vtable->higher
parent
38055fdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/backends/packrat.c
View file @
4a2f5887
...
...
@@ -240,8 +240,10 @@ HParseResult* h_do_parse(const HParser* parser, HParseState *state) {
* so we check to see if we have one
*/
if
(
!
base
||
NULL
==
base
->
head
)
{
h_hashtable_put_precomp
(
state
->
cache
,
key
,
cached_result
(
state
,
tmp_res
),
keyhash
);
if
(
parser
->
vtable
->
higher
)
{
h_hashtable_put_precomp
(
state
->
cache
,
key
,
cached_result
(
state
,
tmp_res
),
keyhash
);
}
return
tmp_res
;
}
else
{
base
->
seed
=
tmp_res
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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