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

parent 38055fdb
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment