From 3cfb34bc4a1ad17a9a227e288d25864ce2981c33 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 7 Aug 2004 12:58:46 +0000 Subject: [project @ 2004-08-07 12:58:46 by jmb] Handle malloc failure svn path=/import/netsurf/; revision=1191 --- riscos/history.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'riscos') 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 -- cgit v1.2.3