From d9e7d5810678c1470808c3de63f7bde412b3d17b Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 11 Oct 2012 11:20:02 +0100 Subject: Fix up ripples from urldb change. --- riscos/hotlist.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'riscos/hotlist.c') diff --git a/riscos/hotlist.c b/riscos/hotlist.c index a01b9256e..53212c12f 100644 --- a/riscos/hotlist.c +++ b/riscos/hotlist.c @@ -468,6 +468,7 @@ bool ro_gui_hotlist_check_menu(wimp_menu *menu) void ro_gui_hotlist_add_page(const char *url) { + nsurl *nsurl; const struct url_data *data; wimp_message message; struct ro_hotlist_message_hotlist_addurl *add_url = @@ -494,9 +495,12 @@ void ro_gui_hotlist_add_page(const char *url) LOG(("Sending Hotlist AddURL to potential hotlist clients.")); - data = urldb_get_url_data(url); + if (nsurl_create(url, &nsurl) != NSERROR_OK) + return; + data = urldb_get_url_data(nsurl); if (data == NULL) return; + nsurl_unref(nsurl); hotlist_url = osmodule_alloc(strlen(url) + 1); hotlist_title = osmodule_alloc(strlen(data->title) + 1); -- cgit v1.2.3