Use corestring ref.

This commit is contained in:
Michael Drake 2014-01-24 19:58:51 +00:00
parent 178f3945b8
commit e32dc31b04

View File

@ -48,6 +48,7 @@
#include "content/urldb.h" #include "content/urldb.h"
#include "desktop/netsurf.h" #include "desktop/netsurf.h"
#include "desktop/gui_factory.h" #include "desktop/gui_factory.h"
#include "utils/corestrings.h"
#include "utils/nsoption.h" #include "utils/nsoption.h"
#include "utils/errors.h" #include "utils/errors.h"
#include "utils/log.h" #include "utils/log.h"
@ -734,12 +735,7 @@ static void fetch_file_poll(lwc_string *scheme)
void fetch_file_register(void) void fetch_file_register(void)
{ {
lwc_string *scheme; lwc_string *scheme = lwc_string_ref(corestring_lwc_file);
if (lwc_intern_string("file", SLEN("file"), &scheme) != lwc_error_ok) {
die("Failed to initialise the fetch module "
"(couldn't intern \"file\").");
}
fetch_add_fetcher(scheme, fetch_add_fetcher(scheme,
fetch_file_initialise, fetch_file_initialise,