summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-11-04 09:26:28 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-11-04 09:26:28 -0300
commit8f06733c8a70ad1ed61dc2dce59f776c0ab6a9cc (patch)
tree74604e734852c3440e9e56e05cdfcea3fd72b740 /src
parent3f0c23550f2caa8ea7aa42019d8c62e227457d28 (diff)
Fix for e13ccca46183
Diffstat (limited to 'src')
-rw-r--r--src/html.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html.cc b/src/html.cc
index c62b2944..4fd6ab91 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -1309,7 +1309,7 @@ static void Html_tag_cleanup_at_close(DilloHtml *html, int new_idx)
{
int w3c_mode = !prefs.w3c_plus_heuristics;
int stack_idx, tag_idx, matched = 0, expected = 0;
- TagInfo tag, new_tag = Tags[new_idx];
+ TagInfo new_tag = Tags[new_idx];
/* Look for the candidate tag to close */
stack_idx = html->stack->size();
@@ -1333,7 +1333,7 @@ static void Html_tag_cleanup_at_close(DilloHtml *html, int new_idx)
Html_tag_cleanup_to_idx(html, stack_idx);
} else if (expected) {
BUG_MSG("unexpected closing tag: </%s> -- expected </%s>.\n",
- new_tag.name, tag.name);
+ new_tag.name, Tags[tag_idx].name);
} else {
BUG_MSG("unexpected closing tag: </%s>.\n", new_tag.name);
}