summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index 47176c8a7..9dcdfda21 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -195,7 +195,8 @@ void browser_window_go_post(struct browser_window *bw, const char *url,
/* if we're simply moving to another ID on the same page,
* don't bother to fetch, just update the window
*/
- if (strncasecmp(bw->current_content->url,
+ if (bw->current_content &&
+ strncasecmp(bw->current_content->url,
url2, hash - url2) == 0) {
free(url2);
browser_window_update(bw, false);