diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2015-03-08 11:45:52 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2016-11-19 14:30:07 +0000 |
commit | e1d710863493dc91c09e0a71dc09d137be8e6b6e (patch) | |
tree | 40880ccd836ab8ea18d2fb83c61eda689c62ba66 /src/select | |
parent | 70411030b0c35e2886fe29eef0fb832f259190b8 (diff) | |
download | libcss-e1d710863493dc91c09e0a71dc09d137be8e6b6e.tar.gz libcss-e1d710863493dc91c09e0a71dc09d137be8e6b6e.tar.bz2 |
Ensure computed content items are initialised to zero.
This allows comparing them with memcmp.
Diffstat (limited to 'src/select')
-rw-r--r-- | src/select/properties/content.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/select/properties/content.c b/src/select/properties/content.c index a9dd211..472a66a 100644 --- a/src/select/properties/content.c +++ b/src/select/properties/content.c @@ -49,6 +49,7 @@ css_error css__cascade_content(uint32_t opv, css_style *style, } content = temp; + memset(content + n_contents, 0, sizeof(css_computed_content_item)); switch (v & 0xff) { case CONTENT_COUNTER: |