mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-12 22:09:19 +03:00
Simplify code
svn path=/trunk/netsurf/; revision=7644
This commit is contained in:
parent
f959f5b679
commit
5404e91fcd
@ -689,10 +689,9 @@ bool ro_gui_url_complete_click(wimp_pointer *pointer)
|
|||||||
g->toolbar->toolbar_handle,
|
g->toolbar->toolbar_handle,
|
||||||
ICON_TOOLBAR_URL);
|
ICON_TOOLBAR_URL);
|
||||||
free(url_complete_original_url);
|
free(url_complete_original_url);
|
||||||
url_complete_original_url = malloc(strlen(url) + 1);
|
url_complete_original_url = strdup(url));
|
||||||
if (!url_complete_original_url)
|
if (!url_complete_original_url)
|
||||||
return false;
|
return false;
|
||||||
strcpy(url_complete_original_url, url);
|
|
||||||
}
|
}
|
||||||
old_selection = url_complete_matches_selection;
|
old_selection = url_complete_matches_selection;
|
||||||
url_complete_matches_selection = selection;
|
url_complete_matches_selection = selection;
|
||||||
|
Loading…
Reference in New Issue
Block a user