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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user