From adc05e5240fc9062c6b3ecb92f1bb1f59f0951c3 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 1 Apr 2004 18:41:53 +0000 Subject: [project @ 2004-04-01 18:41:53 by jmb] Fix bad code. svn path=/import/netsurf/; revision=697 --- desktop/browser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'desktop/browser.c') diff --git a/desktop/browser.c b/desktop/browser.c index e7b575100..8735a7ca2 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -1420,8 +1420,11 @@ void browser_window_follow_link(struct browser_window *bw, break; } else if (click_boxes[i].box->gadget->type == GADGET_SUBMIT) { + struct form *form; char *url, *href; - href = click_boxes[i].box->gadget->form->action; + form = click_boxes[i].box->gadget->form; + if (!form) continue; + href = form->action; if (!href) continue; url = url_join(href, bw->current_content->data.html.base_url); if (!url) continue; -- cgit v1.2.3