From e32dc31b04b8db0c27ef666e85a0cd058302fb15 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 24 Jan 2014 19:58:51 +0000 Subject: Use corestring ref. --- content/fetchers/file.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'content') diff --git a/content/fetchers/file.c b/content/fetchers/file.c index 83c408e5a..7b93ab172 100644 --- a/content/fetchers/file.c +++ b/content/fetchers/file.c @@ -48,6 +48,7 @@ #include "content/urldb.h" #include "desktop/netsurf.h" #include "desktop/gui_factory.h" +#include "utils/corestrings.h" #include "utils/nsoption.h" #include "utils/errors.h" #include "utils/log.h" @@ -734,12 +735,7 @@ static void fetch_file_poll(lwc_string *scheme) void fetch_file_register(void) { - lwc_string *scheme; - - if (lwc_intern_string("file", SLEN("file"), &scheme) != lwc_error_ok) { - die("Failed to initialise the fetch module " - "(couldn't intern \"file\")."); - } + lwc_string *scheme = lwc_string_ref(corestring_lwc_file); fetch_add_fetcher(scheme, fetch_file_initialise, -- cgit v1.2.3