From 137bba297832fca352cf99a5fc0251ba3e251d91 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 9 Aug 2012 16:33:06 +0100 Subject: [PATCH] fix missing check of lwc_string_caseless_isequal() return value --- content/content.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/content.c b/content/content.c index f39ba91d4..b80626cdf 100644 --- a/content/content.c +++ b/content/content.c @@ -788,8 +788,8 @@ content_find_rfc5988_link(hlcache_handle *h, lwc_string *rel) bool rel_match = false; while (link != NULL) { - lwc_string_caseless_isequal(link->rel, rel, &rel_match); - if (rel_match) { + if (lwc_string_caseless_isequal(link->rel, rel, + &rel_match) == lwc_error_ok && rel_match) { break; } link = link->next;