System/Libraries/Html/Renderer: Always return DEFAULT_FAVICON instead of NULL

This commit is contained in:
Alec Murphy 2025-04-14 17:26:22 -04:00
parent 100b54a9cd
commit b30759c12e

View file

@ -1128,9 +1128,8 @@ Context2D* @process_favicon(Context2D* tmpctx)
Context2D* @favicon_for_page(HtmlRenderer* renderer)
{
if (!renderer) {
return;
}
if (!renderer)
return DEFAULT_FAVICON;
U8 status_text_buffer[128];
U8 buf[HTML_WORK_BUFFER_SIZE];
@ -1176,7 +1175,7 @@ Context2D* @favicon_for_page(HtmlRenderer* renderer)
}
if (!resp->body.length) {
Free(buffer);
return;
return DEFAULT_FAVICON;
}
@http_cache_resource(buf, resp->body.data, resp->body.length, renderer->cache_directory);
}