diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-18 10:31:47 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-18 10:31:47 +0100 |
commit | 376c96831d1118e2946bc183114410d329cfdc75 (patch) | |
tree | fee3fd1105e625538d32d83d884c24e844bba87f | |
parent | 38483a9aa516e23aa094dbe6dce16295a3a62cc3 (diff) | |
download | netsurf-376c96831d1118e2946bc183114410d329cfdc75.tar.gz netsurf-376c96831d1118e2946bc183114410d329cfdc75.tar.bz2 |
Don't try to draw NULL history.
-rw-r--r-- | desktop/browser_history.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/browser_history.c b/desktop/browser_history.c index 1e8140626..445c0ee06 100644 --- a/desktop/browser_history.c +++ b/desktop/browser_history.c @@ -766,6 +766,11 @@ bool browser_window_history_redraw(struct browser_window *bw, assert(bw != NULL); history = bw->history; + if (history == NULL) { + LOG(("Attempt to draw NULL history.")); + return false; + } + if (!history->start) return true; return browser_window_history__redraw_entry(history, history->start, |