0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

In script_hook_pre_format_html, check whether get_cache_entry_object

returns NULL.
This commit is contained in:
Miciah Dashiel Butler Masters
2005-12-19 21:28:52 +00:00
committed by Miciah Dashiel Butler Masters
parent 7d5e006908
commit 2e0907ff8d

View File

@@ -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))