From f64a22c228e4fc58c1d0b287fa8fe633db79dca6 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 2 Oct 2017 17:17:28 +0100 Subject: CSS hints: Ensure length and unit are initialised for vertical-align. --- content/handlers/css/hints.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content/handlers') diff --git a/content/handlers/css/hints.c b/content/handlers/css/hints.c index 08fe438c1..3a15f8e08 100644 --- a/content/handlers/css/hints.c +++ b/content/handlers/css/hints.c @@ -748,6 +748,8 @@ static void css_hint_vertical_align_table_cells( corestring_dom_valign, &attr); if (err == DOM_NO_ERR && attr != NULL) { + hint->data.length.value = 0; + hint->data.length.unit = CSS_UNIT_PX; if (dom_string_caseless_lwc_isequal(attr, corestring_lwc_top)) { hint->prop = CSS_PROP_VERTICAL_ALIGN; -- cgit v1.2.3