diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-05 17:28:30 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-05 17:28:30 +0000 |
commit | 55389c543be402eeca097cde75a68d8b1315b980 (patch) | |
tree | 7580462735fe58354d51fea73222c82e5cdc27e8 | |
parent | ea44d84833942c6de84b4aa58ad594754a0a0ac7 (diff) | |
download | netsurf-55389c543be402eeca097cde75a68d8b1315b980.tar.gz netsurf-55389c543be402eeca097cde75a68d8b1315b980.tar.bz2 |
Fix 1488164.
svn path=/trunk/netsurf/; revision=2718
-rw-r--r-- | desktop/history_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/history_core.c b/desktop/history_core.c index e53bdf314..b7fd66648 100644 --- a/desktop/history_core.c +++ b/desktop/history_core.c @@ -436,6 +436,9 @@ void history_layout(struct history *history) time_t t = time(0); struct tm *tp = localtime(&t); bool shuffle = tp->tm_mon == 3 && tp->tm_mday == 1; + + if (!history) + return; history->width = 0; if (history->start) @@ -650,6 +653,9 @@ struct history_entry *history_find_position(struct history_entry *entry, { struct history_entry *child; struct history_entry *found; + + if (!entry) + return 0; if (entry->x <= x && x <= entry->x + WIDTH && entry->y <= y && y <= entry->y + HEIGHT) |