mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Use corestring ref.
This commit is contained in:
parent
178f3945b8
commit
e32dc31b04
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user