fix missing check of lwc_string_caseless_isequal() return value

This commit is contained in:
Vincent Sanders 2012-08-09 16:33:06 +01:00
parent ad5db89b49
commit 137bba2978

View File

@ -788,8 +788,8 @@ content_find_rfc5988_link(hlcache_handle *h, lwc_string *rel)
bool rel_match = false; bool rel_match = false;
while (link != NULL) { while (link != NULL) {
lwc_string_caseless_isequal(link->rel, rel, &rel_match); if (lwc_string_caseless_isequal(link->rel, rel,
if (rel_match) { &rel_match) == lwc_error_ok && rel_match) {
break; break;
} }
link = link->next; link = link->next;