summaryrefslogtreecommitdiff
path: root/content/fetchers/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetchers/data.c')
-rw-r--r--content/fetchers/data.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/content/fetchers/data.c b/content/fetchers/data.c
index fbaa24780..e192812a7 100644
--- a/content/fetchers/data.c
+++ b/content/fetchers/data.c
@@ -34,6 +34,7 @@
#include "content/fetchers/data.h"
#include "content/urldb.h"
#include "desktop/netsurf.h"
+#include "utils/corestrings.h"
#include "utils/nsoption.h"
#include "utils/log.h"
#include "utils/messages.h"
@@ -326,12 +327,7 @@ static void fetch_data_poll(lwc_string *scheme)
void fetch_data_register(void)
{
- lwc_string *scheme;
-
- if (lwc_intern_string("data", SLEN("data"), &scheme) != lwc_error_ok) {
- die("Failed to initialise the fetch module "
- "(couldn't intern \"data\").");
- }
+ lwc_string *scheme = lwc_string_ref(corestring_lwc_data);
fetch_add_fetcher(scheme,
fetch_data_initialise,