From 0866314d9675c09b4b3d0db9e777f132b7c0aae7 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 19 Mar 2017 22:29:23 +0000 Subject: reduce hlcache handle api usage in mimesniff --- content/content_factory.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'content/content_factory.c') diff --git a/content/content_factory.c b/content/content_factory.c index 224220796..935354a5d 100644 --- a/content/content_factory.c +++ b/content/content_factory.c @@ -125,12 +125,14 @@ static const content_handler *content_lookup(lwc_string *mime_type) for (entry = content_handlers; entry != NULL; entry = entry->next) { if (lwc_string_caseless_isequal(mime_type, entry->mime_type, - &match) == lwc_error_ok && match) + &match) == lwc_error_ok && match) { break; + } } - if (entry != NULL) + if (entry != NULL) { return entry->handler; + } return NULL; } -- cgit v1.2.3