From 27aa56cbf6d1f4862594ca0369aabcd56bf2aa48 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 13 Mar 2017 21:55:39 +0000 Subject: make the urldb content type setting API return an error --- content/urldb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'content/urldb.c') diff --git a/content/urldb.c b/content/urldb.c index b795ac3f4..f386aa941 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -3204,17 +3204,20 @@ nserror urldb_set_url_title(nsurl *url, const char *title) /* exported interface documented in content/urldb.h */ -void urldb_set_url_content_type(nsurl *url, content_type type) +nserror urldb_set_url_content_type(nsurl *url, content_type type) { struct path_data *p; assert(url); p = urldb_find_url(url); - if (!p) - return; + if (!p) { + return NSERROR_NOT_FOUND; + } p->urld.type = type; + + return NSERROR_OK; } -- cgit v1.2.3