From 1bf15f1e1516da8dca3bae60605cc291300a875b Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 12 Jul 2006 04:22:57 +0000 Subject: Check an object has a frame name before comparing. svn path=/trunk/netsurf/; revision=2733 --- render/html.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/render/html.c b/render/html.c index f4d6f4fca..4507609af 100644 --- a/render/html.c +++ b/render/html.c @@ -1549,7 +1549,8 @@ bool html_find_frame(struct content *c, const char *frame, assert(c->type == CONTENT_HTML); for (j = 0; j != c->data.html.object_count; j++) { - if (!strcmp(c->data.html.object[j].frame, frame)) { + if (c->data.html.object[j].frame && + !strcmp(c->data.html.object[j].frame, frame)) { *page = c; *i = j; return true; -- cgit v1.2.3