diff options
author | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2020-02-24 10:27:15 +0000 |
---|---|---|
committer | Michael Drake <Michael Drake tlsa@netsurf-browser.org> | 2020-02-24 10:27:15 +0000 |
commit | 1be9823782a6a900f035186138586b3ab800c2b2 (patch) | |
tree | 38449185921e68cfad39d7eb888b46799aaae856 | |
parent | 275ae825d98c90803f7d3db26abcb25c9372b023 (diff) | |
download | libcss-1be9823782a6a900f035186138586b3ab800c2b2.tar.gz libcss-1be9823782a6a900f035186138586b3ab800c2b2.tar.bz2 |
Computed styles: Handle invalid width types.
Fixes scan-build use of garbage value.
-rw-r--r-- | src/select/computed.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/select/computed.c b/src/select/computed.c index 190ca83..24d188e 100644 --- a/src/select/computed.c +++ b/src/select/computed.c @@ -1460,6 +1460,8 @@ css_error compute_absolute_border_side_width(css_computed_style *style, unit = ex_size->unit; } break; + default: + return CSS_INVALID; } return set(style, CSS_BORDER_WIDTH_WIDTH, length, unit); |