1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

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.
This commit is contained in:
Witold Filipczyk 2007-03-18 21:08:45 +01:00 committed by Witold Filipczyk
parent 6605f4c471
commit 0b8e906e3c

View File

@ -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;