summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
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