From 178f3945b8502d5fd483e0d0814d169b4b9bad2f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 24 Jan 2014 19:31:50 +0000 Subject: Just use corestring refs. --- content/fetchers/curl.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'content/fetchers/curl.c') diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index f3a8385a1..90c9c138c 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -46,6 +46,7 @@ #include "content/urldb.h" #include "desktop/netsurf.h" #include "desktop/gui_factory.h" +#include "utils/corestrings.h" #include "utils/nsoption.h" #include "utils/log.h" #include "utils/messages.h" @@ -236,18 +237,10 @@ void fetch_curl_register(void) for (i = 0; data->protocols[i]; i++) { if (strcmp(data->protocols[i], "http") == 0) { - if (lwc_intern_string("http", SLEN("http"), - &scheme) != lwc_error_ok) { - die("Failed to initialise the fetch module " - "(couldn't intern \"http\")."); - } + scheme = lwc_string_ref(corestring_lwc_http); } else if (strcmp(data->protocols[i], "https") == 0) { - if (lwc_intern_string("https", SLEN("https"), - &scheme) != lwc_error_ok) { - die("Failed to initialise the fetch module " - "(couldn't intern \"https\")."); - } + scheme = lwc_string_ref(corestring_lwc_https); } else { /* Ignore non-http(s) protocols */ -- cgit v1.2.3