mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-24 19:32:07 +03:00
Check an object has a frame name before comparing.
svn path=/trunk/netsurf/; revision=2733
This commit is contained in:
parent
06429e69b5
commit
1bf15f1e15
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user