summaryrefslogtreecommitdiff
path: root/src/select
diff options
context:
space:
mode:
authorMichael Drake <Michael Drake tlsa@netsurf-browser.org>2020-02-24 10:27:15 +0000
committerMichael Drake <Michael Drake tlsa@netsurf-browser.org>2020-02-24 10:27:15 +0000
commit1be9823782a6a900f035186138586b3ab800c2b2 (patch)
tree38449185921e68cfad39d7eb888b46799aaae856 /src/select
parent275ae825d98c90803f7d3db26abcb25c9372b023 (diff)
downloadlibcss-1be9823782a6a900f035186138586b3ab800c2b2.tar.gz
libcss-1be9823782a6a900f035186138586b3ab800c2b2.tar.bz2
Computed styles: Handle invalid width types.
Fixes scan-build use of garbage value.
Diffstat (limited to 'src/select')
-rw-r--r--src/select/computed.c2
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);