summaryrefslogtreecommitdiff
path: root/content/fetchers/file.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-01-24 19:58:51 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-01-24 19:58:51 +0000
commite32dc31b04b8db0c27ef666e85a0cd058302fb15 (patch)
tree838941c605a546a23a5160a2755526d147648d03 /content/fetchers/file.c
parent178f3945b8502d5fd483e0d0814d169b4b9bad2f (diff)
downloadnetsurf-e32dc31b04b8db0c27ef666e85a0cd058302fb15.tar.gz
netsurf-e32dc31b04b8db0c27ef666e85a0cd058302fb15.tar.bz2
Use corestring ref.
Diffstat (limited to 'content/fetchers/file.c')
-rw-r--r--content/fetchers/file.c8
1 files changed, 2 insertions, 6 deletions
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,