1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

[perl] ses can be NULL for pre_format_html_hook. Refs #291

This commit is contained in:
Witold Filipczyk 2024-03-18 12:44:02 +01:00
parent e47a482590
commit 88de3ca754

View File

@ -164,7 +164,7 @@ script_hook_pre_format_html(va_list ap, void *data)
struct fragment *fragment = get_cache_fragment(cached); struct fragment *fragment = get_cache_fragment(cached);
char *url = struri(cached->uri); char *url = struri(cached->uri);
if (my_perl && ses && url && cached->length && *fragment->data) if (my_perl && url && cached->length && *fragment->data)
do_script_hook_pre_format_html(url, cached, fragment); do_script_hook_pre_format_html(url, cached, fragment);
return EVENT_HOOK_STATUS_NEXT; return EVENT_HOOK_STATUS_NEXT;