mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
Let the frontend construct the correct URL for the default search ico.
This fixes bug #2057
This commit is contained in:
parent
c74bf433c3
commit
18c8f5f46f
@ -236,14 +236,7 @@ void search_web_retrieve_ico(bool localdefault)
|
||||
if (localdefault) {
|
||||
if (search_default_ico_location == NULL)
|
||||
return;
|
||||
url = malloc(SLEN("file://") + strlen(
|
||||
search_default_ico_location) + 1);
|
||||
if (url == NULL) {
|
||||
warn_user(messages_get("NoMemory"), 0);
|
||||
return;
|
||||
}
|
||||
strcpy(url, "file://");
|
||||
strcat(url, search_default_ico_location);
|
||||
url = path_to_url(search_default_ico_location);
|
||||
} else {
|
||||
url = search_web_ico_name();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user