summaryrefslogtreecommitdiff
path: root/content/content_factory.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-03-19 22:29:23 +0000
committerVincent Sanders <vince@kyllikki.org>2017-03-19 22:29:23 +0000
commit0866314d9675c09b4b3d0db9e777f132b7c0aae7 (patch)
tree5ac6a4bc215129c885286e31ab49fc306cfe95d9 /content/content_factory.c
parent93e2b4855ba5b16a507e75dc533500efcc91e065 (diff)
downloadnetsurf-0866314d9675c09b4b3d0db9e777f132b7c0aae7.tar.gz
netsurf-0866314d9675c09b4b3d0db9e777f132b7c0aae7.tar.bz2
reduce hlcache handle api usage in mimesniff
Diffstat (limited to 'content/content_factory.c')
-rw-r--r--content/content_factory.c6
1 files changed, 4 insertions, 2 deletions
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;
}