0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

[quickjs] Added location_goto_const to avoid some warnings

This commit is contained in:
Witold Filipczyk
2022-01-14 19:48:40 +01:00
parent b9f696ffe5
commit 2237cb002d
4 changed files with 23 additions and 11 deletions

View File

@@ -740,6 +740,17 @@ delayed_goto(void *data)
mem_free(deg);
}
void
location_goto_const(struct document_view *doc_view, const char *url)
{
char *url2 = stracpy(url);
if (url2) {
location_goto(doc_view, url2);
mem_free(url2);
}
}
void
location_goto(struct document_view *doc_view, char *url)
{