From 81f3fcbafd0cb7cb70ec923a845926d7cc1bf4b1 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 6 Aug 2007 22:17:04 +0000 Subject: Fix crash when building error page -- fetch will be NULL, so fetch_get_referer will fail. svn path=/trunk/netsurf/; revision=3476 --- content/fetch.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'content/fetch.c') diff --git a/content/fetch.c b/content/fetch.c index 6c9145560..f49bbb3cc 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -533,6 +533,8 @@ long fetch_http_code(struct fetch *fetch) */ const char *fetch_get_referer(struct fetch *fetch) { + assert(fetch); + return fetch->referer; } -- cgit v1.2.3