Skip to content
Snippets Groups Projects
Commit 4a2f5887 authored by Denley's avatar Denley Committed by Andrea Shepard
Browse files

Add missing check in h_do_parse() for parser->vtable->higher

...@@ -240,8 +240,10 @@ HParseResult* h_do_parse(const HParser* parser, HParseState *state) { ...@@ -240,8 +240,10 @@ HParseResult* h_do_parse(const HParser* parser, HParseState *state) {
* so we check to see if we have one * so we check to see if we have one
*/ */
if (!base || NULL == base->head) { if (!base || NULL == base->head) {
if (parser->vtable->higher) {
h_hashtable_put_precomp(state->cache, key, h_hashtable_put_precomp(state->cache, key,
cached_result(state, tmp_res), keyhash); cached_result(state, tmp_res), keyhash);
}
return tmp_res; return tmp_res;
} else { } else {
base->seed = tmp_res; base->seed = tmp_res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment