summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/string.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/string.c b/src/core/string.c
index f9d9df3..08f8027 100644
--- a/src/core/string.c
+++ b/src/core/string.c
@@ -271,8 +271,9 @@ bool dom_string_caseless_isequal(const dom_string *s1, const dom_string *s2)
is2->type == DOM_STRING_INTERNED) {
bool match;
- lwc_string_caseless_isequal(is1->data.intern, is2->data.intern,
- &match);
+ if (lwc_string_caseless_isequal(is1->data.intern, is2->data.intern,
+ &match) != lwc_error_ok)
+ return false;
return match;
}
@@ -355,7 +356,8 @@ bool dom_string_caseless_lwc_isequal(const dom_string *s1, lwc_string *s2)
if (is1->type == DOM_STRING_INTERNED) {
bool match;
- lwc_string_caseless_isequal(is1->data.intern, s2, &match);
+ if (lwc_string_caseless_isequal(is1->data.intern, s2, &match) != lwc_error_ok)
+ return false;
return match;
}