mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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;
|
smjs_ses = ses;
|
||||||
|
|
||||||
cache_entry_object = get_cache_entry_object(cached);
|
cache_entry_object = get_cache_entry_object(cached);
|
||||||
|
if (!cache_entry_object) goto end;
|
||||||
|
|
||||||
args[0] = OBJECT_TO_JSVAL(cache_entry_object);
|
args[0] = OBJECT_TO_JSVAL(cache_entry_object);
|
||||||
|
|
||||||
if (JS_TRUE == call_script_hook("preformat_html", args, 1, &rval))
|
if (JS_TRUE == call_script_hook("preformat_html", args, 1, &rval))
|
||||||
|
Loading…
Reference in New Issue
Block a user