mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-30 03:26:23 -04:00
[iframes] Do not format strange frame
This commit is contained in:
parent
199237820e
commit
83a359005b
@ -128,7 +128,6 @@ format_iframe(struct session *ses, struct iframe_desc *iframe_desc,
|
|||||||
struct frame *iframe = NULL;
|
struct frame *iframe = NULL;
|
||||||
struct cache_entry *cached;
|
struct cache_entry *cached;
|
||||||
int plain;
|
int plain;
|
||||||
int i;
|
|
||||||
|
|
||||||
assert(ses && iframe_desc && o);
|
assert(ses && iframe_desc && o);
|
||||||
if_assert_failed return NULL;
|
if_assert_failed return NULL;
|
||||||
@ -139,10 +138,8 @@ format_iframe(struct session *ses, struct iframe_desc *iframe_desc,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
i = 0;
|
|
||||||
foreach (iframe, loc->iframes) {
|
foreach (iframe, loc->iframes) {
|
||||||
if (i == j) break;
|
if (!c_strcasecmp(iframe->name, iframe_desc->name)) break;
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iframe) {
|
if (!iframe) {
|
||||||
|
Loading…
Reference in New Issue
Block a user