mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
In script_hook_pre_format_html, check whether get_cache_entry_object
returns NULL.
This commit is contained in:
parent
7d5e006908
commit
2e0907ff8d
@ -59,6 +59,8 @@ script_hook_pre_format_html(va_list ap, void *data)
|
||||
smjs_ses = ses;
|
||||
|
||||
cache_entry_object = get_cache_entry_object(cached);
|
||||
if (!cache_entry_object) goto end;
|
||||
|
||||
args[0] = OBJECT_TO_JSVAL(cache_entry_object);
|
||||
|
||||
if (JS_TRUE == call_script_hook("preformat_html", args, 1, &rval))
|
||||
|
Loading…
Reference in New Issue
Block a user