mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[libcss] color must be set
Otherwise valgrind shows uninitialized value.
This commit is contained in:
parent
c3c80cb952
commit
a645856fac
@ -1800,9 +1800,8 @@ css_error ua_default_for_property(void *pw, uint32_t property, css_hint *hint)
|
|||||||
UNUSED(pw);
|
UNUSED(pw);
|
||||||
|
|
||||||
if (property == CSS_PROP_COLOR) {
|
if (property == CSS_PROP_COLOR) {
|
||||||
// hint->data.color = 0x00000000;
|
hint->data.color = 0x00000000;
|
||||||
// hint->status = CSS_COLOR_COLOR;
|
hint->status = CSS_COLOR_COLOR;
|
||||||
hint->status = 0;
|
|
||||||
} else if (property == CSS_PROP_FONT_FAMILY) {
|
} else if (property == CSS_PROP_FONT_FAMILY) {
|
||||||
hint->data.strings = NULL;
|
hint->data.strings = NULL;
|
||||||
hint->status = CSS_FONT_FAMILY_SANS_SERIF;
|
hint->status = CSS_FONT_FAMILY_SANS_SERIF;
|
||||||
|
Loading…
Reference in New Issue
Block a user