1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-27 01:25:34 +00:00

[libcss] color must be set

Otherwise valgrind shows uninitialized value.
This commit is contained in:
Witold Filipczyk 2023-09-26 19:44:34 +02:00
parent c3c80cb952
commit a645856fac

View File

@ -1800,9 +1800,8 @@ css_error ua_default_for_property(void *pw, uint32_t property, css_hint *hint)
UNUSED(pw);
if (property == CSS_PROP_COLOR) {
// hint->data.color = 0x00000000;
// hint->status = CSS_COLOR_COLOR;
hint->status = 0;
hint->data.color = 0x00000000;
hint->status = CSS_COLOR_COLOR;
} else if (property == CSS_PROP_FONT_FAMILY) {
hint->data.strings = NULL;
hint->status = CSS_FONT_FAMILY_SANS_SERIF;