changeset 1407:c5cc5560d2b2

Fix for e13ccca46183
author Jorge Arellano Cid <jcid@dillo.org>
date Wed, 04 Nov 2009 09:26:28 -0300
parents e13ccca46183
children e59742ef792a 0dbf5fa97600
files src/html.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/html.cc	Mon Nov 02 13:41:37 2009 -0300
+++ b/src/html.cc	Wed Nov 04 09:26:28 2009 -0300
@@ -1309,7 +1309,7 @@
 {
    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 @@
       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);
    }