summaryrefslogtreecommitdiff
path: root/riscos/save.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-08-09 16:11:58 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-08-09 16:11:58 +0000
commitc9bd6fa9fce386526ea1327adea56128648f3355 (patch)
tree419a7d4fcfd1a7ae7229763f0b9ed2125be0a02c /riscos/save.c
parent91e6c7c65bb496f88f6af622f558b35c436f9cd2 (diff)
downloadnetsurf-c9bd6fa9fce386526ea1327adea56128648f3355.tar.gz
netsurf-c9bd6fa9fce386526ea1327adea56128648f3355.tar.bz2
[project @ 2004-08-09 16:11:58 by jmb]
Rework the interface of the URL handing module to allow for multiple error types. Modify save_complete URL rewriting appropriately. svn path=/import/netsurf/; revision=1206
Diffstat (limited to 'riscos/save.c')
-rw-r--r--riscos/save.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/riscos/save.c b/riscos/save.c
index 14564f727..b73f57a8d 100644
--- a/riscos/save.c
+++ b/riscos/save.c
@@ -84,6 +84,7 @@ void ro_gui_save_open(gui_save_type save_type, struct content *c,
const char *name = "";
const char *nice;
os_error *error;
+ url_func_result res;
assert(save_type == GUI_SAVE_HOTLIST_EXPORT_HTML || c);
@@ -102,7 +103,7 @@ void ro_gui_save_open(gui_save_type save_type, struct content *c,
/* filename */
name = gui_save_table[save_type].name;
if (c) {
- if ((nice = url_nice(c->url)))
+ if ((res = url_nice(c->url, &nice)) == URL_FUNC_OK)
name = nice;
}
ro_gui_set_icon_string(dialog_saveas, ICON_SAVE_PATH, name);