diff options
-rw-r--r-- | content/handlers/css/hints.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/content/handlers/css/hints.c b/content/handlers/css/hints.c index a96212386..9fe9ffb12 100644 --- a/content/handlers/css/hints.c +++ b/content/handlers/css/hints.c @@ -882,6 +882,7 @@ static void css_hint_margin_left_right_align_center( corestring_dom_align, &attr); if (exc == DOM_NO_ERR && attr != NULL) { + memset(hint, 0, sizeof(*hint) * 2); if (dom_string_caseless_lwc_isequal(attr, corestring_lwc_center) || dom_string_caseless_lwc_isequal(attr, @@ -1022,6 +1023,7 @@ static void css_hint_margin_left_right_hr( corestring_dom_align, &attr); if (exc == DOM_NO_ERR && attr != NULL) { + memset(hint, 0, sizeof(*hint) * 2); if (dom_string_caseless_lwc_isequal(attr, corestring_lwc_left)) { hint->prop = CSS_PROP_MARGIN_LEFT; |