From 0b8e906e3c1f30b71629b679e6b81ac25f0b38a6 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 18 Mar 2007 21:08:45 +0100 Subject: [PATCH] bug 944: Sometimes there is no document yet, so title is unavailable. It fixes bug 944, but I don't know if the page is added to the globhist. --- src/session/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session/session.c b/src/session/session.c index 741d5718b..85788c065 100644 --- a/src/session/session.c +++ b/src/session/session.c @@ -611,7 +611,7 @@ doc_loading_callback(struct download *download, struct session *ses) print_screen_status(ses); #ifdef CONFIG_GLOBHIST - if (download->pri != PRI_CSS) { + if (download->pri != PRI_CSS && ses->doc_view->document) { unsigned char *title = ses->doc_view->document->title; struct uri *uri;