From 55fd3a7ee7e0add0563cb90f46566ab18bbdfcb8 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 20 Mar 2005 16:34:20 +0000 Subject: [project @ 2005-03-20 16:34:20 by jmb] Fix crash relating to opening a link containing a fragment in a new window. svn path=/import/netsurf/; revision=1553 --- desktop/browser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3