Simplify code

svn path=/trunk/netsurf/; revision=7644
This commit is contained in:
John Mark Bell 2009-05-30 00:23:07 +00:00
parent f959f5b679
commit 5404e91fcd

View File

@ -689,10 +689,9 @@ bool ro_gui_url_complete_click(wimp_pointer *pointer)
g->toolbar->toolbar_handle,
ICON_TOOLBAR_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)
return false;
strcpy(url_complete_original_url, url);
}
old_selection = url_complete_matches_selection;
url_complete_matches_selection = selection;