summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-08-07 12:58:46 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-08-07 12:58:46 +0000
commit3cfb34bc4a1ad17a9a227e288d25864ce2981c33 (patch)
tree986332647d08492740589064f9f71c58d72823c6 /riscos
parent2119440878174643366c2f01c6742be66c9e91f7 (diff)
downloadnetsurf-3cfb34bc4a1ad17a9a227e288d25864ce2981c33.tar.gz
netsurf-3cfb34bc4a1ad17a9a227e288d25864ce2981c33.tar.bz2
[project @ 2004-08-07 12:58:46 by jmb]
Handle malloc failure svn path=/import/netsurf/; revision=1191
Diffstat (limited to 'riscos')
-rw-r--r--riscos/history.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/riscos/history.c b/riscos/history.c
index f2ba9aae4..057620b70 100644
--- a/riscos/history.c
+++ b/riscos/history.c
@@ -654,6 +654,10 @@ void history_go(struct browser_window *bw, struct history_entry *entry)
if (entry->frag_id) {
url = calloc(strlen(entry->url) + strlen(entry->frag_id) + 5,
sizeof(char));
+ if (!url) {
+ warn_user("NoMemory", 0);
+ return;
+ }
sprintf(url, "%s#%s", entry->url, entry->frag_id);
}
else