1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[libcss] initialize unit_len_ctx with zeroes

This commit is contained in:
Witold Filipczyk 2024-01-07 11:41:52 +01:00
parent a96b9fba1f
commit 69edab0036

View File

@ -2063,7 +2063,7 @@ select_css(struct html_context *html_context, struct html_element *html_element)
css_media media = {
.type = CSS_MEDIA_SCREEN,
};
css_unit_ctx unit_len_ctx;
css_unit_ctx unit_len_ctx = {0};
unit_len_ctx.viewport_width = 800; // TODO
unit_len_ctx.viewport_height = 600; // TODO
unit_len_ctx.device_dpi = F_90; //device_dpi;